Commit e9b0406a by BellCodeEditor

auto save

parent 5ce1a422
Showing with 13 additions and 0 deletions
...@@ -7,3 +7,15 @@ def new_input(): ...@@ -7,3 +7,15 @@ def new_input():
else: else:
total.append(unit) total.append(unit)
print(total) print(total)
new_input()
def new_input():
total = []
while True:
unit= input("请输入:")
if unit== 'q':
break
else:
total.append(unit)
return total
total=new_input()
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