Commit 4d68cfef by BellCodeEditor

save project

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