Commit 9e7445ec by BellCodeEditor

save project

parent 3a189d61
Showing with 20 additions and 15 deletions
# 利用write()帮助悟空给诺依回信吧~
# import turtle
# a=turtle.Pen()
# a.write("1\n2\n3",font=("times",15,"normal"))
# a.hideturtle()
# turtle.done()
import turtle
b=turtle.Pen()
b.pensize(16)
b.pencolor("red")
b.left(225)
b.forward(100)
b.circle(50,180)
b.right(90)
b.circle(50,180)
b.forward(100)
b.hideturtle()
import random
a=turtle.Pen()
b=turtle.Screen()
c=b.textinput("提示","你想要多大的爱心?")
d=int(c)
b.bgcolor("light blue")
a.write("你好\n你好啊\n你还好吗",font=("times",15,"normal"))
a.penup()
a.goto(-100,0)
a.pendown()
a.pensize(10)
a.pencolor("black")
a.left(45)
a.forward(2*d)
a.circle(d,180)
a.right(90)
a.circle(d,180)
a.forward(2*d)
a.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