Python Cookbook学习记录 ch1_13_2013/10/24
摘要:
1.13访问子字符串a.使用切片,但是切片一次只能取得一个字段b.使用struct.unpack方法import struct# Get a 5-byte string, skip 3, get two 8-byte strings, then all the rest:baseformat = "5s 3x 8s 8s"# by how many bytes does theline exceed the length implied by this# base-format (24 bytes in this case, but struct.calcsize is g 阅读全文
posted @ 2013-10-24 23:17 七海之风 阅读(175) 评论(0) 推荐(0)
浙公网安备 33010602011771号