Commit a3dd78da by BellCodeEditor

auto save

parent c66a449e
Showing with 23 additions and 19 deletions
# 利用write()帮助悟空给诺依回信吧~ # 利用write()帮助悟空给诺依回信吧~
import turtle import turtle
screen=turtle.Screen()
screen.bgcolor("light blue")
len=screen.textinput("100","100") zj=turtle.Screen()
len=int(len) zj.bgcolor("light pink")
pen=turtle.Pen()
pen.write("你好\nSB.",font=("Times",30,"normal")) sb=turtle.Pen()
pen.hideturtle() sb.penup()
len=60 sb.goto(50,-100)
pen.penup() sb.write(" man\n what can I say?\n mabe out",font=("宋体",20,"normal"))
pen.goto(100,100) sb.hideturtle()
pen.pendown()
pen.pensize(5) dame=turtle.Pen()
pen.pencolor("red") dame.pencolor("red")
pen.left(45) dame.pensize(10)
pen.forward(2*len) dame.left(45)
pen.circle(len,180) dame.forward(100)
pen.right(90) dame.circle(50,180)
pen.circle(len,180) dame.right(90)
pen.forward(2*len) dame.circle(50,180)
dame.forward(100)
dame.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