Commit 1e091c33 by BellCodeEditor

save project

parent 329fafd1
Showing with 28 additions and 2 deletions
# 利用write()帮助悟空给诺依回信吧~ #导入模块
\ No newline at end of file import turtle
screen=turtle.Screen()
screen.bgcolor("bule")
#创建画笔
pen=turtle.Pen()
pen.penup()
pen.goto(50,-300)
pen.write("你好,傻X",font=("Times","50","normal"))
pen.hideturtle()
pen1=turtle.Pen()
pen1.pensize(20)
pen1.pencolor("red")
len=screen.textinput("提示","你想要多大的爱心?")
lovesize=int(len)
pen1.left(45)
pen1.forward(2*lovesize)
pen1.circle(2*lovesize,180)
pen1.right(90)
pen1.circle(2*lovesize,180)
pen1.forward(2*lovesize)
pen1.hideturtle()
turtle.done()
import turtle
screen=turtle.Screen()
screen.textinput("hello!","你的名字是")
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