Commit 9d49e5fd by BellCodeEditor

save project

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