Commit 36bfd3b5 by BellCodeEditor

auto save

parent 578e41ee
total = [] def abc():
while True: total = []
unit= input("请输入:") while True:
if unit== 'q': m = input("请输入:")
if m == 'q':
break break
else: else:
total.append(unit) try:
print(total) m=int(m)
\ No newline at end of file except:
print('请输入整数')
else:
total.append(m)
print(total)
return total
abc()
\ No newline at end of file
import func
abc()
\ 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