Commit 44ad5e61 by BellCodeEditor

auto save

parent c66a449e
Showing with 23 additions and 20 deletions
# 利用write()帮助悟空给诺依回信吧~ # # 利用write()帮助悟空给诺依回信吧~
import turtle import turtle
screen=turtle.Screen() a=turtle.Pen()
screen.bgcolor("light blue") a.hideturtle()
len=screen.textinput("100","100") a.penup()
len=int(len) a.goto(100,-100)
pen=turtle.Pen() a.pendown()
pen.write("你好\nSB.",font=("Times",30,"normal")) a.write("你好,大哥",font=("Times",30,"normal"))
pen.hideturtle()
len=60 a.pencolor('red')
pen.penup() a.pensize(10)
pen.goto(100,100) a.penup()
pen.pendown() a.goto(0,0)
pen.pensize(5) a.pendown()
pen.pencolor("red") a.left(45)
pen.left(45) a.fd(100)
pen.forward(2*len) a.circle(50,180)
pen.circle(len,180) a.right(90)
pen.right(90) a.circle(50,180)
pen.circle(len,180) a.fd(100)
pen.forward(2*len)
turtle.done() turtle.done()
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