Commit a2ad0c04 by BellCodeEditor

save project

parent 062c1a99
Showing with 14 additions and 13 deletions
def asdf(): total=[]
zxcv=[] def new_input():
a=0
while True: while True:
a=input("输入价格,结束按q\n") try:
if a=="q": unit=input("输入价格:")
if unit=="q":
break break
unit_int=int(unit)
except:
print("输入错误请重输"
else: else:
zxcv.insert(0,int(a)) total.append(unit_int)
return(zxcv) for i in total:
a=a+i
def uiop(zxcv_list): return(new_input())
b=0 \ No newline at end of file
for i in zxcv_list:
b=b+i
return(b)
\ 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