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 · 1e9987a8
    BellCodeEditor committed 3 years ago
    1e9987a8
diy1.py 408 Bytes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
import turtle
pen=turtle.Pen()
screen=turtle.screen()
screen.bgcolor("light blue")
Pen.write("你见过凌晨四点\n的洛杉矶吗?",font=("Times",30,"normal"))
turtle.done()
pen.penup()
pen.goto(-100,0)
pen1=turtle.pen()
pen.pensize(5)
pen.pencolor("red")
len=24
pen1.lift(45)
pen1.forward(2*len)
pen1.circle(len,180)
pen1.right(90)
pen1.circle(len,180)
pen1.forward(2*len)
turtle.done()