struct - Python编写SNTP Client的一点疑问
天蓬老师
天蓬老师 2017-04-18 09:40:20
0
1
856
天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

reply all(1)
小葫芦
  1. xhh is used to represent hexadecimal
    data='x1b'+47*'0' represents 48 bytes of data, the first byte is 0x1b, and the next 47 bytes are 0x00

The direct printing result is: 'x1bx00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00 x00x00x00x00x00x00x00x00x00x00x00'

  1. is parsed into 12 ints in network byte order, and t is a tuple of 12 int elements

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!