train 6 months ago
parent e74cc43069
commit dc4ea83c22

@ -1 +0,0 @@
234689931 ミ。フヌ K213 2024.6.1 1

@ -1,2 +0,0 @@
35839 б╕╣в жЙжч 2024.6.1 20 500
K213 жьгЛ оцце 2024.6.1 1501 499

@ -0,0 +1 @@
234236 ミ。テラ k123 2024.6.2 9

@ -0,0 +1,3 @@
35839 娄底 株洲 2024.6.1 20 500
K213 重庆 厦门 2024.6.1 1501 500
k123 株洲 长沙 2024.6.2 20 491

@ -29,7 +29,6 @@ class Users:
self.seating = 0 self.seating = 0
def Init(trainlist): def Init(trainlist):
print("初始化......")
file_object = open('train.txt', 'r') file_object = open('train.txt', 'r')
for line in file_object: for line in file_object:
tra = Train() tra = Train()
@ -55,7 +54,6 @@ def Init(trainlist):
user.seating = m[4] user.seating = m[4]
people.append(user) people.append(user)
man_object.close() man_object.close()
print("初始化成功!")
class ADD: class ADD:
def Add_f(self): def Add_f(self):
@ -328,7 +326,6 @@ class BTT:
changeID = str(ID.get()) changeID = str(ID.get())
for item in trainlist: for item in trainlist:
if item.ID == changeID: if item.ID == changeID:
# trainlist.remove(item)
file_object = open("train.txt", "w") file_object = open("train.txt", "w")
for tra in trainlist: for tra in trainlist:
file_object.write(tra.ID) file_object.write(tra.ID)
Loading…
Cancel
Save