Commit d77b560a by BellCodeEditor

auto save

parent 4fbb2011
Showing with 3 additions and 21 deletions
import turtle import turtle
screen=turtle.Screen() screen=turtle.Screen()
screen.bgcolor("light blue") screen.bgcolor("light blue")
len=screen.textinput("心的大小","请输入你要的大小:") len=screen.textinput("GGB","请输入勾勾大小")
lovesize=int(len) lovesize=int(len)
pen=turtle.Pen() pen=turtle.Pen()
pen.left(45) pen.left(45)
...@@ -12,7 +12,7 @@ pen.circle(lovesize,180) ...@@ -12,7 +12,7 @@ pen.circle(lovesize,180)
pen.forward(2*lovesize) pen.forward(2*lovesize)
pen.penup() pen.penup()
pen.goto(100,100) pen.goto(100,100)
pen.write("沟巴老弟",font=("Times",30,"normal")) pen.write("沟巴老弟,我",font=("Times",30,"normal"))
turtle.done() turtle.done()
import turtle import turtle
pen=turtle.Pen() pen=turtle.Pen()
screen=turtle.Screen() pen.write("沟巴老弟,\n户籍还是道歉",font=("times",30,"normal"))
screen.bgcolor("blue")
len=screen.textinput("GGB","大小")
len1=int(len)
pen.pensize(10)
pen.color("red")
pen.penup()
pen.goto(100,-100)
pen.write("沟巴老弟,户籍\n还是\n道歉",font=("times",30,"normal"))
pen.goto(0,0)
pen.pendown()
pen.left(45)
pen.forward(len1)
pen.circle(len1/2,180)
pen.right(90)
pen.circle(len1/2,180)
pen.forward(len1)
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