摘要: 1 import csv # Comma Separated Value 2 3 # class Dialect 4 # delimiter = None # 分隔符 5 # doublequote = None # 元素是引用符,双倍的引用符。默认是true,如果改为false就需要设置分隔符,否则报错。 6 # ... 阅读全文
posted @ 2018-01-17 16:36 魂~ 阅读(768) 评论(0) 推荐(0) 编辑
摘要: 1 import pickle 2 3 # 在python中如果我们有一些对象需要持久性存储,并且不丢失我们这个对象的类型与数据, 4 # 我们则需要将这些对象进行序列化,序列化后,需要使用的时候,我们在回复为原来的数据, 5 # 序列化的这种过程,我们将其称为pickle(腌制) 6 7 8 # 1、dumps(object) python对象 --> ... 阅读全文
posted @ 2018-01-17 14:38 魂~ 阅读(393) 评论(0) 推荐(1) 编辑
摘要: 1 import struct # a module 2 3 4 # Functions to convert between Python values and C structs. 5 # Python bytes objects are used to hold the data representing the C struct 6 # and also as form... 阅读全文
posted @ 2018-01-17 12:42 魂~ 阅读(505) 评论(0) 推荐(0) 编辑
摘要: 1 # http://www.runoob.com/python3/python3-multithreading.html 2 # https://docs.python.org/3/library/threading.html 3 # http://yoyzhou.github.io/blog/2013/02/28/python-threads-synchronization-lo... 阅读全文
posted @ 2018-01-17 11:16 魂~ 阅读(330) 评论(0) 推荐(0) 编辑