Commit e9b0406a by BellCodeEditor

auto save

parent 5ce1a422
Showing with 14 additions and 2 deletions
...@@ -6,4 +6,16 @@ def new_input(): ...@@ -6,4 +6,16 @@ def new_input():
break break
else: else:
total.append(unit) total.append(unit)
print(total) print(total)
\ No newline at end of file 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