Commit fede0f72 by BellCodeEditor

auto save

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