Commit 232b55ce by BellCodeEditor

save project

parent a50ceeec
Showing with 32 additions and 0 deletions
# 利用write()帮助悟空给诺依回信吧~
import turtle
bj=turtle.Screen()
name=bj.textinput("提示","你的名字是?")
cr=bj.textinput("提示","你要多大的爱心")
l=int(cr)
bj.bgcolor("black")
p=turtle.Pen()
p.pencolor("#ff66ff")
p.penup()
p.goto(100,-100)
p.down()
p.write(name+"你好\n ^_^ ^_^ ^_^",font=("华文隶书",30,"normal"))
p.hideturtle()
p1=turtle.Pen()
p1.up()
p1.goto(0,-50)
p1.down()
p1.pensize(5)
p1.pencolor("#ff66ff")
p1.left(45)
p1.forward(l*2)
p1.circle(l,180)
p1.right(90)
p1.circle(l,180)
p1.forward(l*2)
p1.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