摘要: import pickleclass Mypickle: def __init__(self,path): self.file = path def dump(self,obj): with open(self.file, 'ab') as f: pickle.dump(obj, f) def lo 阅读全文
posted @ 2020-08-05 15:34 diracy 阅读(173) 评论(0) 推荐(0)
摘要: import jsonclass A: def __init__(self,type,num): self.type=type self.num=num def welcome(self): print('how are you!')class My_json: def __init__(self, 阅读全文
posted @ 2020-08-05 15:30 diracy 阅读(497) 评论(0) 推荐(0)