Commit 7015ef15 by BellCodeEditor

auto save

parent e6a2cb7a
Showing with 25 additions and 1 deletions
import turtle
pen=turtle.Pen()
pen.fillcolor("red")
pen.begin_fill()
for i in range(5):
pen.forward(200)
pen.right(144)
pen.end_fill()
pen.hideturtle()
turtle.done()
\ No newline at end of file
a={"数学":0,"语文":0,"英语":0}
b=int(input("数学:"))
c=int(input("语文:"))
d=int(input("英语:"))
a['数学']=b
a['语文']=c
a['英语']=d
sum=0
for y in a.values():
sum=sum+y
avg=sum/len(a)
print(round(avg,0))
......@@ -12,6 +12,6 @@ today_menu={'前菜':{'熏鲢鱼':20,'生蚝':20,'面包':10},
for k,v in today_menu.items():
print('今日' + k + '有:')
for i in v.values():
for i in v.keys():
print(i,end=' ') #依次告诉客人今天的各类菜有哪些选择
print()
\ 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