Commit 5ee65444 by BellCodeEditor

save project

parent d90bb74a
Showing with 10 additions and 5 deletions
a = [] a = []
while True: while True:
b = input('输入:') b = input('输入:')
if b=='q': if b== 'q':
break
break
else: else:
try:
int(b)
except:
print("输入整数!")
print('——'*30)
int(b)
a.append(b) a.append(b)
print(a) 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