Commit 9e1b502b by BellCodeEditor

save project

parent 75683ba0
Showing with 8 additions and 19 deletions
sss=open(r'C:\Users\dell\Desktop\test.txt','w',encoding='utf-8')
sss.write('小兰:12本')
sss.close()
def new_input():
while True:
total = []
unit= input("请输入:")
if unit== 'q':
break
else:
try:
unit=int(unit)
except:
print("输入错误")
else:
total.append(unit)
print("-"*30)
print(total)
return total()
total()=new_input()
print(fbh[0])
\ 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