Commit eb42285c by BellCodeEditor

save project

parent 6d88eca4
Showing with 32 additions and 0 deletions
def new_input():
total
\ No newline at end of file
def new_input():
total=[]
while True:
money=input("请输入")
if money=='q':
break
else:
try:
money.int(money)
except:
print("吼吼吼")
else:
total.append(money)
return total
def abc(list1):
cont=0
for i in range(list1):
count += i
return count
result=new_input()
pay=abc(result)
print("一共需要付",pay,"元")
l=["刘鑫喆","11","5"]
l=["刘鑫喆","11","5"]
l.pop(2)
l.append(175)
print(l)
#
\ 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