摘要: 1、pickle.dump(object, file, protocol=) 将object对象序列化到打开的文件夹file中。protocol是序列化协议,默认是0,如果是负数或者HIGHEST_PROTOCOL,则使用最高版本序列化协议。 2、pickle.load(file,encoding) 阅读全文
posted @ 2020-02-15 12:24 my_Sunday 阅读(337) 评论(0) 推荐(0) 编辑
摘要: class Person: def __init__(self,age): self.age = agea = Person(5)s = Person(1)d = Person(2)z = Person(7)x = Person(88)c = Person(55)v = Person(3)b = P 阅读全文
posted @ 2020-02-15 11:53 my_Sunday 阅读(512) 评论(0) 推荐(0) 编辑