Commit ddc9572c by BellCodeEditor

save project

parent acbe2b8f
Showing with 5 additions and 1 deletions
...@@ -5,7 +5,11 @@ def func(): ...@@ -5,7 +5,11 @@ def func():
if unit== 'q': if unit== 'q':
break break
else: else:
try:
unit=int(unit)
except:
print('wrong')
else:
total.append(unit) total.append(unit)
print(total) print(total)
func() func()
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