Commit 9f6fe66b by BellCodeEditor

save project

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