Commit fede0f72 by BellCodeEditor

auto save

parent 70800bdf
Showing with 20 additions and 9 deletions
total = [] totai = []
def new_input(): def myinput():
totai = []
while True: while True:
unit= input("请输入:") b = 0
if (unit== 'q'): a = input("请输入")
break try:
b = int(a)
except:
if(a =='q'):
return
else: else:
total.append(unit) totai.append(b)
new_input()
print(total)
\ No newline at end of file tt = myinput()
print(tt)
print(totai)
\ 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