Commit 6ed4a8f8 by BellCodeEditor

save project

parent 5ee65444
Showing with 18 additions and 14 deletions
a = [] def abc():
while True: a = []
b = input('输入:') while True:
if b== 'q': b = input('输入:')
break if b== 'q':
else: break
try: else:
try:
int(b)
except:
print("输入整数!")
print('——'*30)
int(b) int(b)
except: a.append(b)
print("输入整数!") return a
print('——'*30) abc()
int(b) q = return
a.append(b) print(q)
print(a) \ No newline at end of file
\ 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