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
    auto save · e3539183
    BellCodeEditor committed 3 years ago
    e3539183
diy1.py 457 Bytes
Edit
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
# 利用write()帮助悟空给诺依回信吧
import turtle
c = turtle.Screen()
c. bgcolor('pink')
sb = turtle.Pen()
sb.penup()
sb.goto(100,-100)
sb.pendown()
sb.write('春眠不洗脚,\n处处蚊子咬。\n夜来风雨声,\n不知死多少。', font=('Times',20,'normal'))
sb.hideturtle()
j = turtle.Pen()
j.pensize(5)
j.pencolor('red')
j.left(45)
j.forward(100)
j.circle(50,180)
j.right(90)
j.circle(50,180)
j.forward(100)
j.hideturtle()
turtle.done()