Commit 1fa1aeb0 by BellCodeEditor

save project

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