Commit 0d7fd85b by BellCodeEditor

save project

parent 9743a1c8
Showing with 12 additions and 3 deletions
# 利用write()帮助悟空给诺依回信吧~ # 利用write()帮助悟空给诺依回信吧~
import turtle import turtle
pen=turtle.Pen() pen=turtle.Pen()
pen.penup()
pen.goto(-50,-150)
pen.write("莫等闲,\n白了少年头,\n空悲切。\n ——岳飞",font=("Times",20,"normal")) pen.write("莫等闲,\n白了少年头,\n空悲切。\n ——岳飞",font=("Times",20,"normal"))
pen1=turtle.Pen() pen1=turtle.Pen()
pen1.circle(50) pen.goto(0,0)
pen.hideturtle() pen1.pencolor("red")
pen1.pensize(10)
pen1.setheading(45)
pen1.forward(100)
pen1.circle(50,180)
pen1.left(-90)
pen1.circle(50,180)
pen1.forward(100)
pen1.hideturtle()
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