Commit 1e8bcef7 by BellCodeEditor

save project

parent a83ab89a
Showing with 26 additions and 2 deletions
...@@ -7,6 +7,31 @@ def new_nput(): ...@@ -7,6 +7,31 @@ def new_nput():
if unit== 'q': if unit== 'q':
break break
else: else:
try:
unit = in(unit)
except:
ptint("请重新输入一个数字")
else:
total.append(unit)
print("-"*30)
total.append(unit) total.append(unit)
print(total) print(total)
new_nput() new_nput()
\ 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