Commit 97554005 by BellCodeEditor

auto save

parent fcd213cb
Showing with 20 additions and 5 deletions
total = []
while True:
unit= input("请输入:")
if unit== 'q':
break
else:
total.append(unit)
print(total)
\ No newline at end of file
def funcname():
def funk():
abcd=[]
while True:
abcde=input('不知道'):
if abcde=='q':
break
abcde=input('不知道')
if abcde=='q':
break
else:
abcd.append(abcde)
try:
b=int(abcde)
except:
print('谁叫你输整数的')
else:
abcd.append(abcde)
funk()
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