Commit 48cc7a86 by BellCodeEditor

save project

parent f7220d32
Showing with 9 additions and 7 deletions
...@@ -6,12 +6,14 @@ ...@@ -6,12 +6,14 @@
break break
else: else:
try: try:
unit=int(unit) unit=int(unit)
except: except:
print('请重新输入一个数字') print('请重新输入一个数字')
else: else:
totel.append(unit) total.append(unit)
finally: finally:
print("_"#30) print("_"*30)
print(total) return total
new_input() result=new_input()
\ No newline at end of file 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