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 · 0e6feb0b
    BellCodeEditor committed 4 years ago
    0e6feb0b
diy1.py 450 Bytes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
# 利用write()帮助悟空给诺依回信吧~
import turtle
pen=turtle.Pen()
pen.pencolor("dark blue")
pen.penup()
pen.goto(100,-100)
pen.pendown()
pen.write("hello,world!",font=("宋体",30))
pe=turtle.Pen()
pe.pensize(5)
len=100
pe.pencolor("red")
pe.left(45)
pe.forward(len)
pe.circle(2*len,180)
pe.right(90)
pe.circle(len,180)
pe.forward(len)
pe.hideturtle()
screen=turtle.Screen()
screen.bgcolor("light blue")
turtle.done()