Commit a8c25d29 by BellCodeEditor

save project

parent 30a63ed7
Showing with 14 additions and 7 deletions
利用write()帮助悟空给诺依回信吧~
#利用write()帮助悟空给诺依回信吧~
import turtle
p=turtle.Pen()
p.penup()
p.goto(100,-100)
p.write("hi,刘\n四面楚歌")
p.write("hi,刘\n四面楚歌",font=("宋体",18,"normal"))
p.hideturtle()
turtle.done()
import turtle
s=turtle.Screen()
s.bgcolor("orange")
pen1=turtle.Pen()
luacc=120
pen1.pencolor("red")
pen1.pensize(10)
pen1.left(45)
pen1.forward(100)
pen1.circle(50,180)
pen1.forward(2*luacc)
pen1.circle(luacc,180)
pen1.right(90)
pen1.circle(50,180)
pen1.forward(100)
pen1.circle(luacc,180)
pen1.forward(2*luacc)
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