def 存档(数据组): pickle_sj = open('D:\python huanjing\python1\wzyxics0.03\sj.txt','wb') pickle.dump(数据组,pickle_sj) pickle_sj.close() def 读取(): pickle_sjf = open('D:\python huanjing\python1\wzyxics0.03\sj.txt','rb+') sj = pickle.load(pickle_sjf) pickle.dump(sj,pickle_sjf) pickle_sjf.close() return sj def 重置(): 数据1 = (0,0,0) 数据2 = (数据1,0,0) a = (1,100,0,数据2) 存档(a)
初级程序员
by: zaimie 发表于:2024-04-10 15:00:02 顶(0) | 踩(0) 回复
虽然没做完但是可以下载玩一下
回复评论