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 · 9e26cd4b
    BellCodeEditor committed 3 years ago
    9e26cd4b
diy1.py 354 Bytes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
import turtle
p = turtle.Pen()
p.write("锄禾日当午4t4rgrgee\n",
        font=("Times",30,"normal"))
p.pencolor("tomato")
p.fillcolor("red")
p.goto(0,-100)
p.left(45)
p.begin_fill()
p.forward(200)
p.circle(100,180)
p.right(90)
p.circle(100,180)
p.forward(200)
p.end_fill()

p.penup()
p.goto(100,100)
p.write("你好")
turtle.done()