Commit ec105d6a by BellCodeEditor

save project

parent ab3df9c5
Showing with 12 additions and 4 deletions
import turtle
import random
d = random.randint(10,250)
def draw_ax(d,fill,color,fill_color,pen_size):
def draw_ax(d,fill,color,fill_color,pen_size,pen_X,pen_Y):
pen2 = turtle.Pen()
pen2.penup()
pen2.goto(pen_X, pen_Y)
pen2.pendown()
pen2.pencolor(color)
pen2.pensize(pen_size)
pen2.setheading(45)
......@@ -18,10 +19,11 @@ def draw_ax(d,fill,color,fill_color,pen_size):
pen2.hideturtle()
screen = turtle.Screen()
screen.bgcolor("pink")
d = int(screen.textinput("问题","画的爱心的半径是"))
pen = turtle.Pen()
pen.penup()
pen.goto(100, -100)
pen.write("Hello Turtle", font=("fixedsys", 40, "normal"))
pen.hideturtle()
draw_ax(d,True,"red","red",5)
draw_ax(d,True,"red","red",5,0,0)
turtle.done()
\ No newline at end of file
import turtle
s = turtle.Screen()
s.textinput("问题","我帅吗")
turtle.done()
\ 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