Commit aea18c39 by BellCodeEditor

auto save

parent 024fb164
Showing with 24 additions and 9 deletions
|
/|\
|||
|||
|||
|||
|||
\ No newline at end of file
I
\ No newline at end of file
total = []
while True:
unit= input("请输入:")
if unit== 'q':
break
else:
total.append(unit)
print(total)
\ No newline at end of file
def rtweyuyyuyu():
g=""
while True:
a=int(input("请输入:"))
try:
a1=int(a)
except:
print('报错')
print('输入整数')
else:
g.append(a1)
print(g)
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