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
Commit d8e6b2a3 authored 3 years ago by BellCodeEditor's avatar BellCodeEditor
Browse files
Options
  • Browse Files
  • Download
  • Email Patches
  • Plain Diff

save project

parent 140cb615
Hide whitespace changes
Inline Side-by-side
Showing with 35 additions and 2 deletions
  • diy1.py
diy1.py
View file @ d8e6b2a3
# 利用write()帮助悟空给诺依回信吧~ # 利用write()帮助悟空给诺依回信吧~
\ No newline at end of file import turtle
a=turtle.Pen()
a.write("猪福语:\n诺依,你个傻*,\n滚蛋!",font=("times",30,"normal"))
a.goto(-150,0)
a.fillcolor("red")
a.begin_fill()
a.setheading(45)
a.fd(100)
a.circle(50,180)
a.right(90)
a.circle(50,180)
a.fd(100)
a.end_fill()
a.setheading(20)
def www(w):
a.setheading(90)
a.left(w)
a.fd(20)
for i in range(3):
www(20)
www(-20)
www(20)
a.setheading(90)
a.left(-20)
a.fd(13)
a.pu()
a.goto(-150,0)
a.setheading(0)
a.shape("turtle")
a.fillcolor("green")
for i in range(500):
a.fd(0.2)
turtle.done()
\ No newline at end of file
This diff is collapsed. Click to expand it.
  • Write
  • Preview
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment