Commit 7b4e72ac by BellCodeEditor

save project

parent a4d23450
Showing with 11 additions and 13 deletions
total = []
while True:
def new_input():
unit= input("请输入:")
try:
int(unit)
except:
if unit== 'q':
break
else:
total.append(unit)
print(total)
retum
#
file1=open(r"C:\Users\Administrator\Desktop\book.txt,"w","utf-8"")
file.write("小兰:12")
file.write("小丽:11")
file.write("李文:9")
file.write("张伟:16")
#
file1=open(r"C:\Users\Administrator\Desktop\book.txt,"a","utf-8"")
file.write("小兰:12")
file.write("小丽:11")
file.write("李文:9")
file.write("张伟:16")
file.write("小强:12")
file.write("李明:15")
file.close
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