Commit d5a935fd by BellCodeEditor

save project

parent 1334e22c
Showing with 4 additions and 2 deletions
...@@ -3,7 +3,7 @@ def a(): ...@@ -3,7 +3,7 @@ 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
...@@ -11,4 +11,5 @@ def a(): ...@@ -11,4 +11,5 @@ def a():
print("jlkhke") print("jlkhke")
else: else:
total.append(unit) total.append(unit)
print(total) print(total)
a()
\ 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