Commit 1fa1aeb0 by BellCodeEditor

save project

parent 8c34406c
Showing with 10 additions and 8 deletions
......@@ -2,13 +2,15 @@ def abcdefg():
total = []
while True:
try:
unit= int(input("请输入:"))
unit=input("请输入:")
if unit== 'q':
break
unit=int(unit)
except:
print("Do you wanna have a bad time?")
else:
if unit== 'q':
break
else:
total.append(unit)
print(total)
abcdefg()
\ No newline at end of file
total.append(unit)
print(total)
return total
a=abcdefg()
print(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