Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

bellcode / lesson3-1-1_DIY1

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • lesson3-1-1_DIY1
  • diy1.py
Find file
BlameHistoryPermalink
  • BellCodeEditor's avatar
    save project · 45df25d6
    BellCodeEditor committed 4 years ago
    45df25d6
diy1.py 536 Bytes
Edit
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
# 利用write()帮助悟空给诺依回信吧~
import turtle
pen12=turtle.Pen()
# pen12.write("春晓\n春眠不觉晓,\n处处闻啼鸟。\n夜来风雨声,\n花落知多少。",font=("Times",50,"normal"))
# pen12.hideturtle()
# turtle.done()
pen12.pensize(7)
pen12.pencolor("pink")
pen12.fillcolor("pink")
pen12.begin_fill()
pen12.left(45)
pen12.forward(200)
pen12.circle(100,180)
pen12.right(90)
pen12.circle(100,180)
pen12.forward(200)
pen12.fillcolor("pink")
pen12.end_fill()
pen12.hideturtle()
turtle.done()