Commit d5a935fd by BellCodeEditor

save project

parent 1334e22c
Showing with 9 additions and 7 deletions
...@@ -3,12 +3,13 @@ def a(): ...@@ -3,12 +3,13 @@ def a():
while True: while True:
unit= input("请输入:") unit= input("请输入:")
try: try:
unit=input(unit) unit=int(unit)
except: except:
if unit== 'q': if unit== 'q':
break break
else:
print("jlkhke")
else: else:
print("jlkhke") total.append(unit)
else: print(total)
total.append(unit) a()
print(total) \ 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