Commit 90c31d7f by BellCodeEditor

auto save

parent d868113a
Showing with 6 additions and 6 deletions
def x():
total = []
total=[]
while True:
unit= input("请输入:")
if unit== 'q':
unit=int(input("请输入:"))
if unit=='q':
break
else:
total.append(unit)
print(total)
x()
\ No newline at end of file
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