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 · b117d9ab
    BellCodeEditor committed 11 months ago
    b117d9ab
diy1.py 416 Bytes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
# 利用write()帮助悟空给诺依回信吧~
import turtle
p=turtle.Screen()
p.bgcolor("light blue")
a=turtle.Pen()
a.penup()
a.goto(100,-100)
a.write("但愿人长久,\n千里共婵娟。",font=("Times",20,"normal"))
a.hideturtle()
s=turtle.Pen()
s.pensize(10)
s.pencolor("red")
len=60
s.left(45)
s.forward(2*len)
s.circle(len,180)
s.right(90)
s.circle(len,180)
s.forward(2*len)
turtle.done()