Commit 148f874b by BellCodeEditor

save project

parent 880b9885
Showing with 2 additions and 1 deletions
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
import turtle import turtle
a=input("请输入爱心颜色:") a=input("请输入爱心颜色:")
b=input("请输入被景颜色:") b=input("请输入被景颜色:")
c=input("请输入爱心大小:") c=int(input("请输入爱心大小:"))
screen=turtle.Screen() screen=turtle.Screen()
if b=="pink": if b=="pink":
screen.bgcolor("pink") screen.bgcolor("pink")
...@@ -27,3 +27,4 @@ pen1.forward(2*c) ...@@ -27,3 +27,4 @@ pen1.forward(2*c)
pen1.hideturtle() pen1.hideturtle()
turtle.done() 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