Commit 686c5871 by BellCodeEditor

save project

parent ec57f90b
Showing with 27 additions and 2 deletions
# 利用write()帮助悟空给诺依回信吧~ # rite()帮助悟空给诺依回信吧~
import turtle import turtle
screen=turtle.Screen()
screen.bgcolor("light blue")
len=screen.textinput("提示","你想要多大的爱心")
livesize=int(len)
pen=turtle.Pen() pen=turtle.Pen()
pen.write("示儿\n死去元知万事空\n但悲不见九州同\n王师北定中原日\n家祭不忘告乃翁",fomt=("Timses",10,"normal")) pen.penup()
pen.goto(100,-100)
pen.write("示儿\n死去元知万事空\n但悲不见九州同\n王师北定中原日\n家祭不忘告乃翁",font=("Timses",10,"normal"))
pen.hideturtle() pen.hideturtle()
# len=screen.textinput("提示","你想要多大的爱心")
# livesize=int(len)
pen1=turtle.Pen()
pen1.pencolor("red")
pen1.pensize(5)
pen1.left(45)
pen1.forward(livesize*2)
pen1.circle(livesize,180)
pen1.right(90)
pen1.circle(livesize,180)
pen1.forward(livesize*2)
turtle.done() turtle.done()
\ No newline at end of file
import turtle
screen=turtle.Screen()
screen.textinput("姓名框","你的名字是:")
turtle.dome()
\ 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