Commit 9f6fe66b by BellCodeEditor

save project

parent 5c494563
Showing with 23 additions and 21 deletions
# 利用write()帮助悟空给诺依回信吧~
import turtle import turtle
screen=turtle.Screen() screen = turtle.Screen()
screen.bgcolor("light blue") screen.bgcolor("pink")
len=screen.textinput("100","100") f = int(screen.textinput("提示","输入大小"))
len=int(len) turtle.penup()
pen=turtle.Pen() turtle.goto(0,-240)
pen.write("你好\nSB.",font=("Times",30,"normal")) turtle.write("你好呀,Amy\n我想邀请你参加我的生日聚会\n时间是晚上七点\n ————你的好朋友Jone",font=("Times",20,"normal"))
pen.hideturtle()
len=60 turtle.penup()
pen.penup() turtle.goto(0,0)
pen.goto(100,100) turtle.pendown()
pen.pendown() turtle.pencolor("red")
pen.pensize(5) turtle.pensize(5)
pen.pencolor("red")
pen.left(45) turtle.left(45)
pen.forward(2*len) turtle.forward(f*2)
pen.circle(len,180) turtle.circle(f,180)
pen.right(90) turtle.right(90)
pen.circle(len,180) turtle.circle(f,180)
pen.forward(2*len) turtle.forward(f*2)
turtle.done()
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