Commit 4d68cfef by BellCodeEditor

save project

parent e0e1c9ff
Showing with 4 additions and 7 deletions
......@@ -3,22 +3,19 @@ def a():
while True:
unit=input("请输入:,关闭点q")
unit=input("请输入:")
if unit== 'q':
break
try:
b=int(unit)
except:
print("要输入整数啊")
print("要输入整数啊")
else:
total.append(unit)
#print(total)
return total
t=a()
print(t[1])
print(total)
a()
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