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

bellcode / lesson3-4-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-4-1_DIY1
  • diy1.py
Find file
BlameHistoryPermalink
  • BellCodeEditor's avatar
    save project · 54bd8ccd
    BellCodeEditor committed 4 years ago
    54bd8ccd
diy1.py 453 Bytes
Edit
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
#利用write()帮助悟空给诺依回信吧~
import turtle
screen=turtle.Screen()
screen.bgcolor("red")
pen1=turtle.Pen()
pen1.penup()
pen1.goto(100,-100)
pen1.write("sb",font=("Times",10,"normal"))
pen1.hideturtle()


pen2=turtle.Pen()
pen2.pencolor("green")
pen2.pensize(20)
pen2.left(45)
len=50
pen2.forward(len*2)
pen2.circle(len,180)
pen2.right(90)
pen2.circle(len,180)
pen2.forward(len*2)
pen2.hideturtle()
turtle.done()