Commit 59a01c54 by BellCodeEditor

save project

parent f1b9df66
Showing with 2 additions and 12 deletions
def abc(): with open(r'C:\Users\玛酷7\Desktop\sales_list.txt',"r",encoding="utf-8")as file:
total = [] print(file.read())
while True:
unit= input("请输入:")
if unit== 'q':
break
else:
total.append(unit)
print(total)
a=abc()
\ 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