Commit fbbfaec7 by BellCodeEditor

auto save

parent 6d88eca4
def new_input():
total = []
while True:
unit= input("请输入:")
if unit== 'q':
break
else:
try:
unit=int(unit)
except:
print("要输入整数啊!")
else:
total.append(unit)
return total
# b=new_input()
# print(b)
def sum(money):
count=0
for i in money:
count=count+i
return count
# c=sum(b)
# print("总价是:",c)
\ No newline at end of file
steamer={"第一格":"猪八戒"}
steamer["第一格"]="唐三藏"
steamer["第二格"]="假行者"
steamer["第三格"]="沙和尚"
steamer["第四格"]="猪八戒"
print(steamer)
print(steamer["第四格"])
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