Commit c30d5eb4 by BellCodeEditor

auto save

parent 0fcb0318
Showing with 25 additions and 7 deletions
a1={"数学":77,"语文":88,"英语":99}
b1={"数学":37,"语文":28,"英语":59}
={"明":a1,"亮":b1}
a=input("请输入班级")
b=input("请输入姓名")
print([a][b])
\ No newline at end of file
def func():
total=[]
while True:
price=input('请输入菜品价格:')
if price=='q':
break
else:
try:
price=int(price)
except:
print('输入错误,请输入一个数字')
else:
total.append(price)
print('-'*30)
return total
def sum(money):
count=0
for i in money:
count=count+i
return count
a=func()
print(sum(a))+00000000010000000000000001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111----------------------------111111111111111111111111111111111111111+2--
\ 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