Commit 4acf7a6b by BellCodeEditor

save project

parent 7ed6e683
Showing with 5 additions and 0 deletions
...@@ -6,4 +6,8 @@ while True: ...@@ -6,4 +6,8 @@ while True:
else: else:
try: try:
total.append(unit) total.append(unit)
except:
print('要输入整数数字')
else:
total.append(unit)
print(total) print(total)
\ 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