Commit 97476885 by BellCodeEditor

auto save

parent 93eb4ebc
import turtle
pen=turtle.Pen()
pen.left(45)
pen.forward(100)
pen.left(90)
pen.circle(50,180)
pen.right(180)
pen.forward(100)
pen.right(90)
pen.circle(-50,180)
turtle.done()
\ No newline at end of file
import turtle
pen1=turtle.Pen()
pen1.color("blue")
pen1.penup()
pen1.goto(-210,120)
pen1.pendown()
pen1.circle(100)
pen1.hideturtle()
pen2=turtle.Pen()
pen2.color("black")
pen2.penup()
pen2.goto(-100,120)
pen2.pendown()
pen2.circle(100)
pen2.hideturtle()
pen3=turtle.Pen()
pen3.color("red")
pen3.penup()
pen3.goto(0,120)
pen3.pendown()
pen3.circle(100)
pen3.hideturtle()
pen4=turtle.Pen()
pen4.color("green")
pen4.penup()
pen4.goto(-50,60)
pen4.pendown()
pen4.circle(100)
pen4.hideturtle()
pen5=turtle.Pen()
pen5.color("red")
pen5.penup()
pen5.goto(-150,60)
pen5.pendown()
pen5.circle(100)
pen5.hideturtle()
import turtle
screen=turtle.Screen()
screen.bgcolor("light blue")
pen=turtle.Pen()
pen.penup()
pen.goto(-100,0)
text=screen.textinput("提示","你想对2022年说什么")
pen.write(text,font=("Times",20,"normal"))
pen.hidetuter()
turtle.done()
\ No newline at end of file
...@@ -9,15 +9,17 @@ pen.pendown() ...@@ -9,15 +9,17 @@ pen.pendown()
pen.write("Hi,诺依~",font=("Times",13,"normal")) pen.write("Hi,诺依~",font=("Times",13,"normal"))
pen.hideturtle() pen.hideturtle()
pen1=turtle.Pen() pen1=turtle.Pen()
len=100
pen1.pencolor("red") pen1.pencolor("red")
pen1.pensize(5) pen1.pensize(5)
pen1.penup() pen1.penup()
pen1.goto(0,0) pen1.goto(0,0)
pen1.pendown() pen1.pendown()
pen1.left(45) pen1.left(45)
pen1.forward(100) pen1.forward(len/2)
pen1.circle(50,180) pen1.circle(len/4,180)
pen1.right(90) pen1.right(90)
pen1.circle(50,180) pen1.circle(len/4,180)
pen1.forward(100) pen1.forward(len/2)
pen1.hideturtle() pen1.hideturtle()
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