Commit 9e1b502b by BellCodeEditor

save project

parent 75683ba0
Showing with 9 additions and 20 deletions
sss=open(r'C:\Users\dell\Desktop\test.txt','w',encoding='utf-8')
def new_input(): sss.write('小兰:12本')
while True: sss.close()
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