Commit 01de928e by BellCodeEditor

auto save

parent db65f74a
Showing with 20 additions and 3 deletions
# 利用write()帮助悟空给诺依回信吧~ # 利用write()帮助悟空给诺依回信吧~
import turtle import turtle
#设置背景颜色
screen=turtle.Screen()
screen.bgcolor("light pink")
pen=turtle.Pen() pen=turtle.Pen()
pen.write("Hi 诺依 你好啊,\n用Python写贺卡这是太有趣了,\n你喜欢吃西蓝花吗还是西红柿",font=("Times",15,"normal")) pen.up()
pen.hideturtle() pen.goto(60,-100)
turtle.done() #保存画笔 建立画布的意识 pen.write("Hi 诺依 你好啊,\n用Python写贺卡这是太有趣了,\n你喜欢吃西兰花吗还是西红柿",font=("Times",15,"normal"))
pen1=turtle.Pen()
pen1.pensize(5)
pen1.pencolor("red")
len=60
pen1.left(45)
pen1.forward(len*2)
pen1.circle(len,180)
#朝上方
pen1.right(90)
pen1.circle(len,180)
pen1.forward(len*2)
pen1.hideturtle()
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