Commit f6035750 by BellCodeEditor

save project

parent ab9d95d2
Showing with 3 additions and 5 deletions
...@@ -9,11 +9,7 @@ def new_input(): ...@@ -9,11 +9,7 @@ def new_input():
else: else:
total.append(unit) total.append(unit)
while True: while True:
unit= input("请输入:") new_input()
if unit== 'q':
break
else:
total.append(unit)
print(total) print(total)
...@@ -26,3 +22,5 @@ print(total) ...@@ -26,3 +22,5 @@ print(total)
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