Commit 889f9130 by BellCodeEditor

auto save

parent 7b809309
Showing with 72 additions and 21 deletions
import turtle
screen=turtle.Screen()
screen.bgcolor("light blue")
pen=turtle.Pen()
pen.penup()
pen.goto(30,0)
pen.write("你好!请你说出对2020的祝福~!",font=("Times",20,"normal"))
pen.hideturtle()
pen1=turtle.Pen()
len=screen.textinput("提示","你想要多大的爱心?")
pen1.pensize(5)
pen1.pencolor("red")
pen1.left(45)
pen1.forward(100)
pen1.circle(50,180)
pen1.right(90)
pen1.circle(50,180)
pen1.forward(100)
turtle.done()
\ No newline at end of file
import turtle
screen=turtle.Screen()
screen.bgcolor("light blue")
pen=turtle.Pen()
pen.penup()
pen.goto(100,0)
pen.write("你好!",font=("Times",30,"normal"))
pen.goto(30,0)
pen.write("你好!请你说出对2020的祝福~!",font=("Times",20,"normal"))
pen.hideturtle()
pen1=turtle.Pen()
len=screen.textinput("提示","你想要多大的爱心?")
pen1.pensize(5)
pen1.pencolor("red")
pen1.left(45)
......
import turtle
screen=turtle.Screen()
screen.bgcolor("light blue")
pen=turtle.Pen()
pen.penup()
pen.goto(100,0)
pen.write("你好",font=("Times","50","normal"))
pen1=turtle.Pen()
pen1.pensize(5)
pen1.pencolor("red")
pen1.left(45)
pen1.forward(100)
pen1.circle(50,180)
pen1.right(90)
pen1.circle(50,180)
pen1.forward(100)
turtle.done()
\ No newline at end of file
# import turtle
# pen=turtle.Pen()
# pen.left(45)
# pen.forward(100)
# pen.left(90)
# pen.circle(50,180)
# pen.left(180)
# pen.forward(100)
# pen.right(90)
# pen.circle(-50,180)
# turtle.done()
# import turtle
# pen=turtle.Pen()
# pen.pencolor("blue")
# pen.penup()
# pen.goto(-100,0)
# pen.pendown()
# pen.pensize(5)
# pen.circle(50,360)
# pen1=turtle.Pen()
# pen1.pencolor("black")
# pen1.pensize(5)
# pen1.circle(50,360)
# pen2=turtle.Pen()
# pen2.penup()
# pen2.goto(100,0)
# pen2.pendown()
# pen2.pencolor("red")
# pen2.pensize(5)
# pen2.circle(50,360)
# pen3=turtle.Pen()
# pen3.penup()
# pen3.goto(-50,-90)
# pen3.pendown()
# pen3.pencolor("yellow")
# pen3.pensize(5)
# pen3.circle(50,360)
# pen4=turtle.Pen()
# pen4.penup()
# pen4.goto(50,-90)
# pen4.pendown()
# pen4.pencolor("green")
# pen4.pensize(5)
# pen4.circle(50,360)
# 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