Commit a2ad0c04 by BellCodeEditor

save project

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