Commit 75d08668 by BellCodeEditor

save project

parent e6d9a83e
Showing with 5 additions and 4 deletions
# 利用write()帮助悟空给诺依回信吧~ # 利用write()帮助悟空给诺依回信吧~
import turtle import turtle
pen=turtle.Pen() pen=turtle.Pen()
lend=30
pen.penup() pen.penup()
pen.goto(100,-100) pen.goto(100,-100)
pen.write("诺依,我收到你的信了\n,turtle模块真好用",font=("times",13,"normal")) pen.write("诺依,我收到你的信了\n,turtle模块真好用",font=("times",13,"normal"))
...@@ -9,11 +10,11 @@ pen.hideturtle() ...@@ -9,11 +10,11 @@ pen.hideturtle()
import turtle import turtle
pen1=turtle.Pen() pen1=turtle.Pen()
pen1.left(45) pen1.left(45)
pen1.forward(100) pen1.forward(2*lend)
pen1.circle(50,180) pen1.circle(lend,180)
pen1.right(90) pen1.right(90)
pen1.circle(50,180) pen1.circle(lend,180)
pen1.forward(100) pen1.forward(2*lend)
s=turtle.Screen() s=turtle.Screen()
s.bgcolor("red") s.bgcolor("red")
pen1.hideturtle() pen1.hideturtle()
......
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