Commit 94c60fd7 by BellCodeEditor

save project

parent 9e70fb1c
Showing with 28 additions and 4 deletions
import turtle
screen=turtle.Screen()
screen.bgcolor("light green")
a=screen.textinput("爱心的大小","爱心的大小是多少")
e = int(a)
pen=turtle.Pen()
pen.penup()
pen.goto(100,-100)
......@@ -9,11 +11,11 @@ pen2=turtle.Pen()
pen2.pensize(5)
pen2.pencolor("red")
pen2.left(45)
pen2.forward(100)
pen2.circle(50,180)
pen2.forward(2*e)
pen2.circle(e,180)
pen2.right(90)
pen2.circle(50,180)
pen2.forward(100)
pen2.circle(e,180)
pen2.forward(2*e)
pen.hideturtle()
pen2.hideturtle()
turtle.done()
\ No newline at end of file
# for i in range(1,5):
# for j in range(1,5):
# for k in range(1,5):
# if(i!=k)and(i!=j)and(j!=k):
# print(i,j,k)
# import turtle
# screen=turtle.Screen()
# screen.textinput("姓名框","你的名字是:")
# turtle.done()
import turtle
screen=turtle.Screen()
pen=turtle.Pen()
b=screen.textinput("提示","你想要多大的魔法阵呀?")
size=int(b)
pen.circle(size)
pen.circle(size,360,3)
pen.circle(size,60)
pen.circle(size,360,3)
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