Commit 86349394 by BellCodeEditor

save project

parent 70012256
Showing with 10 additions and 11 deletions
# 利用write()帮助悟空给诺依回信吧~
import turtle
x = textinput("the size of heart")
pen = turtle.Pen()
import turtle
pen = turtle.Pen()
pen.penup()
pen.goto(100,-100)
pen.write("此情此景,我想吟诗一首。\n床前明月光,\n外面都是霜。",font = ("Times",12,"normal"))
pen.write("此情此景,我想吟诗一首。\n床前明月光,\n外面都是霜。",font = ("Times",12,"normal"))
pen.hideturtle()
penone = turtle.Pen()
penone = turtle.Pen()
penone.pensize(10)
penone.pencolor("red")
len = int(x)
penone.left(45)
penone.forward(2*len)
penone.circle(len,180)
penone.forward(100)
penone.circle(50,180)
penone.right(90)
penone.circle(len,180)
penone.forward(2*len)
penone.circle(50,180)
penone.forward(100)
penone.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