def csave(self): self.data.clear() self.data.append(self.value) self.data.append(self.total_lie) psave(self.data) data=pload()
def cload(self): data=pload() # print(data) self.value=[] self.total_lie=[] self.value=data[0] self.total_lie=data[1] # print(self.value) self.reloadfromfile()
def csave(self): self.data.clear() self.data.append(self.value) self.data.append(self.total_lie) self.data.append(self.headhang) self.data.append(self.headlie) psave(self.data) data = pload() print(data)
def cload(self): data = pload() # print(data) self.value = [] self.total_lie = [] self.headhang = [] self.headlie = [] self.value = data[0] self.total_lie = data[1] self.headhang = data[2] self.headlie = data[3] # print(self.value) self.reloadfromfile()