Commit 1da9a1fe by BellCodeEditor

save project

parent 2d457f85
Showing with 13 additions and 6 deletions
# # 利用write()帮助悟空给诺依回信吧~
import turtle
# p=turtle.Pen()
# p.write("Hi,\n 诺伊~\n 我用write给你写信了\n
# 用python写信太有趣了\n 我也喜欢python\n
# ——悟空",font=("Times",10,"normal"))
# p.hideturtle()
# turtle.done()
screen=turtle.Screen()
screen.bgcolor("light blue")
p=turtle.Pen()
p.penup()
p.goto(100,-100)
p.write("Hi,\n 诺伊~\n 我用write给你写信了\n 用python写信太有趣了\n 我也喜欢python\n ——悟空",font=("Times",10,"normal"))
p.hideturtle()
t=turtle.Pen()
p.fillcolor("red")
t.left(45)
t.forward(100)
t.circle(50,180)
t.left(-90)
t.circle(50,180)
t.forward(100)
t.hideturtle()
t.end_
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