Commit 14918035 by BellCodeEditor

save project

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