Commit a3c962fb by BellCodeEditor

auto save

parent a5ce13ac
Showing with 72 additions and 8 deletions
import turtle
#文字
pen=turtle.Pen()
pen.penup()
pen.goto(100,-100)
pen.write("你好\n诺伊\n好久不见",font=("Times",20,"normal"))
pen.hideturtle()
#画圆
len=60
len=screen.textinput("画爱心","你想要多大的爱心")
lovesize=int(len)
pen1=turtle.Pen()
pen1.pensize(29)
pen1.color("green")
pen1.left(45)
pen1.forward(2*lovesize)
pen1.circle(len,180)
pen1.right(90)
pen1.circle(len,180)
pen1.forward(2*lovesize)
pen1.hideturtle()
#背景
pen=turtle.Pen()
screen=turtle.Screen()
screen.bgcolor("pink")
turtle.done()
import turtle import turtle
#文字
pen=turtle.Pen() pen=turtle.Pen()
pen.goto(100,-100)
pen.penup() pen.penup()
pen.write("你好\n诺伊\n好久不见",font=("Times",10,"normal")) pen.goto(100,-100)
pen.write("你好\n诺伊\n好久不见",font=("Times",20,"normal"))
pen.hideturtle() pen.hideturtle()
# turtle.done() #画圆
len=60
len=screen.textinput("画爱心","你想要多大的爱心")
lovesize=int(len)
pen1=turtle.Pen() pen1=turtle.Pen()
pen1.pensize(30) pen1.pensize(29)
pen1.color("green") pen1.color("green")
pen1.left(45) pen1.left(45)
pen1.forward(100) pen1.forward(2*lovesize)
pen1.circle(50,180) pen1.circle(len,180)
pen1.right(90) pen1.right(90)
pen1.circle(50,180) pen1.circle(len,180)
pen1.forward(100) pen1.forward(2*lovesize)
pen1.hideturtle() pen1.hideturtle()
#背景
pen=turtle.Pen()
screen=turtle.Screen()
screen.bgcolor("pink")
turtle.done() turtle.done()
...@@ -24,3 +32,10 @@ turtle.done() ...@@ -24,3 +32,10 @@ turtle.done()
import turtle
screen=turtle.Screen()
screen=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