Commit dfc3172b by BellCodeEditor

save project

parent 8ba29f95
Showing with 9 additions and 5 deletions
# 利用write()帮助悟空给诺依回信吧~ # 利用write()帮助悟空给诺依回信吧~
import turtle import turtle
pen.write('Hi,诺依~\n用python写电字贺卡真是太有趣啦~\n我也喜欢python~\')
pen.hideturtle()
pen=turtle.Pen() pen=turtle.Pen()
pen.color('red') screen=turtle.Screen()
screen.bgcolor('blue')
pen.write('Hi,诺依~\n用python写电字贺卡真是太有趣啦~\n我也喜欢python~')
pen.hideturtle()
pen.up()
pen.goto(100,100)
pen.down()
pen.pencolor('red')
pen.pensize(10) pen.pensize(10)
pen.left(45) pen.left(45)
pen.forward(100) pen.forward(100)
pen.circle(50,180) pen.circle(50,180)
pen.right(90) pen.right(90)
pen.circle(50,180) pen.circle(50,180)
pen.forward(100) pen.forward(100)
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