Commit f6bbefdd by BellCodeEditor

save project

parent fc2ada30
Showing with 35 additions and 19 deletions
# 报菜名 import turtle
# 悟空和诺依到了一家特色餐馆,这家餐馆最大的特色就是有个自动报菜名机器人 turtle.goto(0,0)
# 通常它会自动说出今天的前菜有哪些汤有哪些主菜有哪些等等~ turtle.penup()
# 可是今儿它有些bug产生的结果很奇怪,你可以检查出来么? turtle.pendown()
today_menu={'前菜':{'熏鲢鱼':20,'生蚝':20,'面包':10}, turtle.circle(100)
'汤':{'玉米浓汤':15,'蔬菜汤':15,'海鲜汤':15}, turtle.penup()
'主菜':{'鱼':40,'虾':30,'蟹':20,'贝壳类':20}, turtle.goto(0,70)
'间菜':{'牛扒':25,'煨菜':25,'肉排':30}, turtle.pendown()
"烧烤和沙拉":{'需要':15,'不需要':0}, turtle.forward(10)
'甜品':{'可丽露':20,'优格吐司':15,'蓝莓松饼':20} turtle.left(120)
} turtle.forward(10)
turtle.left(120)
for k,v in today_menu.items(): turtle.forward(10)
print('今日' + k + '有:') turtle.penup()
turtle.goto(-10,50)
for i in v: turtle.pendown()
print(i,end=' ') #依次告诉客人今天的各类菜有哪些选择 turtle.left(90)
turtle.circle(50,60)
\ No newline at end of file turtle.penup()
turtle.goto(-20,100)
turtle.pendown()
turtle.fillcolor("black")
turtle.begin_fill()
turtle.circle(20)
turtle.end_fill()
turtle.penup()
turtle.goto(40,100)
turtle.pendown()
turtle.fillcolor("black")
turtle.begin_fill()
turtle.circle(20)
turtle.end_fill()
turtle.penup()
turtle.down()
\ 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