Commit 9d49e5fd by BellCodeEditor

save project

parent 6753504d
Showing with 8 additions and 3 deletions
...@@ -6,8 +6,13 @@ def new_input(): ...@@ -6,8 +6,13 @@ def new_input():
break break
else: else:
try: try:
unit=int(unit)
except:
print('请重新输一个数字') print('请重新输一个数字')
except: else:
total.append(unit) total.append(unit)
print("==========================") print("==========================")
return total return total
\ No newline at end of file result = new_input()
print(result)
\ 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