Commit 14918035 by BellCodeEditor

save project

parent ad8d54fe
Showing with 21 additions and 13 deletions
# 利用write()帮助悟空给诺依回信吧~
import turtle import turtle
# pen=turtle.Pen() turtle.bgcolor("light blue")
# pen.write("hello,诺伊,\n我是悟空,\n很期待与你见面!",font=("Times","30","normal")) turtle.pencolor("red")
# pen.hideturtle() turtle.pensize(5)
pen1=turtle.Pen() len=turtle.textinput("文本弹窗","请输入想要的数字:")
pen1.pensize(5) cool=int(len)
pen1.pencolor("red") turtle.fillcolor("red")
pen1.left(45) turtle.begin_fill()
pen1.forward(200) turtle.left(45)
pen1.circle(100,180) turtle.forward(2*cool)
pen1.right(90) turtle.circle(cool,180)
pen1.circle(100,180) turtle.right(90)
pen1.forward(200) turtle.circle(100,180)
turtle.forward(2*cool)
turtle.end_fill()
turtle.penup()
turtle.goto(80,-50)
turtle.pencolor("black")
turtle.pendown()
turtle.write("新年快乐,\n我是苏浩添,\n我祝大家快快乐乐每一天",font=("宋体",23,"normal"))
turtle.hideturtle()
turtle.done() 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