Commit 8adc614b by BellCodeEditor

save project

parent fb245c49
Showing with 6 additions and 4 deletions
...@@ -8,7 +8,9 @@ def new_input(): ...@@ -8,7 +8,9 @@ def new_input():
try: try:
unit = int(unit) unit = int(unit)
except: except:
print("请输入正确")
else:
total.append(unit) total.append(unit)
print("请输入正确") return total
print(total) a=new_input()
new_input() print(a)
\ No newline at end of file \ 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