Commit f6035750 by BellCodeEditor

save project

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