Commit 9d49e5fd by BellCodeEditor

save project

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