Commit 052fd714 by BellCodeEditor

auto save

parent b0c5a33e
Showing with 13 additions and 4 deletions
张荷婧=[] def zhj():
while True: 张荷婧=[]
while True:
i=input('请输入:') i=input('请输入:')
if i=='q': if i=='q':
break break
else: else:
try:
i=int(i)
except:
print('要输入数字哦')
else:
张荷婧.append(i) 张荷婧.append(i)
print(张荷婧) #print(张荷婧)
\ No newline at end of file return 张荷婧
zhj=zhj()
print(zhj)
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