Commit 5c6e731f by BellCodeEditor

auto save

parent c2f1308f
Showing with 25 additions and 2 deletions
# 利用write()帮助悟空给诺依回信吧~
\ No newline at end of file
# 利用write()帮助悟空给诺依回信吧~
import turtle
ck=turtle.Screen()
ck.bgcolor("pink")
len=int(ck.textinput("提示","你要多大的爱心"))
p1=turtle.Pen()
p1.penup()
p1.goto(100,-100)
p1.write("来点小鸟伏特加加,\n无情哈拉少,\n无情无情哈拉少",font=("Times",30,"normal"))
p1.hideturtle()
p2=turtle.Pen()
p2.pensize(5)
p2.color("red")
p2.left(45)
p2.forward(2*len)
p2.circle(len,180)
p2.right(90)
p2.circle(len,180)
p2.forward(len*2)
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