Commit 3490661a by BellCodeEditor

save project

parent 578e41ee
Showing with 43 additions and 9 deletions
def n():
def n():
total = []
while True:
unit= input("请输入:")
if unit== 'q':
break
else:
total.append(unit)
print(total)
n()
try:
except[]:
else:
\ No newline at end of file
total = [] # def n():
while True: # total = []
unit= input("请输入:") # while True:
if unit== 'q': # unit= input("请输入:")
break # if unit== 'q':
else: # break
total.append(unit) # else:
print(total) # total.append(unit)
\ No newline at end of file # print(total)
# n()
# print(a)
# try:
# except[]:
# else:
# try:
# age = int(input('Heello,你几岁了??'))
# except:
# print('要输入整数呀')
# print('再见')
\ 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