Commit 5a1fe4ed by BellCodeEditor

save project

parent 91e073ed
Showing with 3 additions and 4 deletions
reurn=[]
def new_input(): def new_input():
total = [] total = []
while True: while True:
...@@ -7,12 +6,11 @@ def new_input(): ...@@ -7,12 +6,11 @@ def new_input():
break break
else: else:
try: try:
unit=int(unit) unit=int
except: except:
print("请输入:") print("请输入:")
else: else:
total.append(unit) total.append(unit)
print(total) print(total)
reurn=return
print(total)
new_input() new_input()
\ 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