Commit fe4d7716 by BellCodeEditor

auto save

parent 5525e854
Showing with 36 additions and 12 deletions
diy={"苹果":12,"香蕉":21,"西瓜":15}
while True:
d=input("今日水果")
r=input("价格")
if d in diy:
if diy[d] > int(r):
print("降价了")
else:
print("不买")
else:
diy[d]=int(r)
\ No newline at end of file
import turtle
turtle.pencolor("blue")
turtle.fillcolor("white")
turtle.begin_fill()
turtle.circle(20)
turtle.end_fill()
turtle.penup()
turtle.goto(50,0)
turtle.pendown()
turtle.pencolor("black")
turtle.begin_fill()
turtle.circle(20)
turtle.end_fill()
turtle.penup()
turtle.goto(100,0)
turtle.pendown()
turtle.pencolor("red")
turtle.begin_fill()
turtle.circle(20)
turtle.end_fill()
turtle.penup()
turtle.goto(25,-25)
turtle.pendown()
turtle.pencolor("yellow")
turtle.begin_fill()
turtle.circle(20)
turtle.end_fill()
turtle.penup()
turtle.goto(75,-25)
turtle.pendown()
turtle.pencolor("green")
turtle.begin_fill()
turtle.circle(20)
turtle.end_fill()
turtle.done()
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