1、pickle 可以将我们python中的任意数据类型转化成bytes并写入到文件中. 同样也可以把文件中写好的bytes转换回我们python的数据. pickle可以直接序列化对象. 1 class Fruit: 2 def __init__(self,name,color): 3 self. Read More
posted @ 2018-11-15 22:47 恐水的鱼 Views(184) Comments(0) Diggs(1) Edit