Commit 39a74a93 by BellCodeEditor

save project

parent 1b5d85ee
Showing with 3 additions and 8 deletions
import turtle import turtle
import random
beijing=turtle.Screen() beijing=turtle.Screen()
beijing.bgcolor("pink") beijing.bgcolor("pink")
...@@ -10,7 +10,8 @@ huabi.goto(100,-150) ...@@ -10,7 +10,8 @@ huabi.goto(100,-150)
huabi.write("春晓\n",font=("Times",20,"normal")) huabi.write("春晓\n",font=("Times",20,"normal"))
huabi.hideturtle() huabi.hideturtle()
c=random.randint(10,100) a=beijing.textinput("提示","你要多大的爱心(建议40—100)")
c=int(a)
pen1=turtle.Pen() pen1=turtle.Pen()
pen1.pensize(5) pen1.pensize(5)
pen1.pencolor("red") pen1.pencolor("red")
...@@ -27,9 +28,3 @@ turtle.done() ...@@ -27,9 +28,3 @@ 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