Commit 6c3de91f by BellCodeEditor

auto save

parent d9c87840
Showing with 18 additions and 5 deletions
# 利用write()帮助悟空给诺依回信吧~ # 利用write()帮助悟空给诺依回信吧~
# 导入turtle模块 # 导入turtle模块
# import turtle
# # 创建一支画笔
# pen = turtle.Pen()
# pen.write("窗前明月光\n疑是地上霜\n举头望明月\n低头思故乡\n好诗好诗,牛逼牛逼!",font = ("Times",30,"normal"))
# pen.hideturtle()
# turtle.done()
import turtle import turtle
# 创建一支画笔 pen1 = turtle.Pen()
pen = turtle.Pen() pen1.color("red")
pen.write("窗前明月光\n疑是地上霜\n举头望明月\n低头思故乡\n好诗好诗,牛逼牛逼!",font = ("Times",30,"normal")) pen1.pensize(5)
pen.hideturtle() pen1.pencolor("red")
pen1.begin_fill()
pen1.left(45)
pen1.forward(200)
pen1.circle(100,180)
pen1.right(90)
pen1.circle(100,180)
pen1.forward(200)
pen1.end_fill()
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