Commit 6a138c1d by BellCodeEditor

save project

parent 7a9c1405
Showing with 26 additions and 0 deletions
def new_input():
tartle=()
while True:
date=input("请输入价格")
if dates=="q":
break
else:
try:
date1=int(date)
except:
print("请输入整数")
else:
tartle.append(date1)
return tartle
resurt =new_input()
def cant(list):
a=0
for i in list:
a=a+i
print(a)
return a
recilet1 =cant(resurt)
\ No newline at end of file
def nem_imput()
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