Commit 9956299a by BellCodeEditor

save project

parent 6eb04230
Showing with 7 additions and 14 deletions
def a(): with open(r"D:\我的文档\Desktop\test.txt","r",encoding="UTF-8")as filel
total = [] for data in filel:
while True: if""in data
unit= input("请输入(q退出):") data=data.replace()
if unit== 'q': new_data +=data
break print(new_data)
else:
try:
unit=int(unit)
except:
total.append(unit)
print(total)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment