Commit d7d912d8 by BellCodeEditor

save project

parent 23311989
Showing with 5 additions and 4 deletions
...@@ -9,7 +9,9 @@ def new_input(): ...@@ -9,7 +9,9 @@ def new_input():
unit = int(unit) unit = int(unit)
except: except:
print("输入错误,重新输入") print("输入错误,重新输入")
total.append(unit) else:
total.append(unit)
print("-"*30) print("-"*30)
print(total) return total
new_input()c result=new_input()
\ No newline at end of file print(result)
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