Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

bellcode / lesson2-5_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 93f3ca7e authored 4 years ago by BellCodeEditor's avatar BellCodeEditor
Browse files
Options
  • Browse Files
  • Download
  • Email Patches
  • Plain Diff

save project

parent f394494e
Hide whitespace changes
Inline Side-by-side
Showing with 10 additions and 7 deletions
  • a.py
a.py
View file @ 93f3ca7e
...@@ -2,17 +2,19 @@ import turtle ...@@ -2,17 +2,19 @@ import turtle
screen=turtle.Screen() screen=turtle.Screen()
screen.bgcolor("blue") screen.bgcolor("blue")
pen=turtle.Pen() pen=turtle.Pen()
pen.penup()
pen.goto(-200,-100)
pen.hideturtle()
pen.write("若以,tur真好用,\n我会在画布 上写字!",font=("Time",20,"normal")) pen.write("若以,tur真好用,\n我会在画布 上写字!",font=("Time",20,"normal"))
qen=turtle.Pen() qen=turtle.Pen()
qen.pensize(5) qen.pensize(5)
qen.pencolor("red") qen.pencolor("red")
len=20
qen.left(45) qen.left(45)
qen.forward(100) qen.forward(2*len)
qen.circle(50,180) qen.circle(len,180)
qen.right(90) qen.right(90)
qen.circle(50,180) qen.circle(len,180)
qen.forward(100) qen.forward(2*len)
pen.penup() # qen.hideturtle()
pen.goto(-200,-100)
pen.hideturtle()
turtle.done() 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