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

auto save

parent 636967ac
Hide whitespace changes
Inline Side-by-side
Showing with 15 additions and 2 deletions
  • diy1.py
diy1.py
View file @ 2cef3218
# 利用write()帮助悟空给诺依回信吧~ # 利用write()帮助悟空给诺依回信吧~
import turtle import turtle
s = turtle.Screen()
s.bgcolor("yellow")
p = turtle.Pen() p = turtle.Pen()
#p.write("锄禾日当午,\n汗滴禾下土,\n谁知盘中餐,\n粒粒皆辛苦。",font=("Time",30,"normal")) p.penup()
p.goto(100,-100)
p.write("锄禾日当午,\n汗滴禾下土,\n谁知盘中餐,\n粒粒皆辛苦。",font=("Time",30,"normal"))
p.hideturtle() p.hideturtle()
p1 = turtle.Pen() p1 = turtle.Pen()
p1.circle(200) p1.pensize(10)
p1.pencolor("green")
p1.left(45)
p1.forward(100)
p1.circle(50,180)
p1.right(90)
p1.circle(50,180)
p1.forward(100)
p1.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