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

save project

parent b1faef5e
Hide whitespace changes
Inline Side-by-side
Showing with 15 additions and 19 deletions
  • diy1.py
diy1.py
View file @ c88a9771
# 利用write()帮助悟空给诺依回信吧~
import turtle import turtle
screen=turtle.Screen() screen = turtle.Screen()
screen.bgcolor("light blue") screen.bgcolor("light blue")
pen=turtle.Pen() wen = turtle.Pen()
pen.write("你好/nfuck.",font=("Times",30,"normal")) wen.write("这是新学期的第一课,\n打起精神!",
pen.hideturtle() font=("Times",15,"normal"))
xin=turtle.Pen()
pen.penup() xin.pencolor("red")
pen.goto(100,100) xin.pensize(20)
pen.pendown() xin.left(45)
pen.pensize(5) xin.forward(100)
pen.pencolor("red") xin.circle(50,180)
pen.left(45) xin.right(90)
pen.forward(100) xin.circle(50,180)
pen.circle(50,180) xin.forward(100)
pen.right(90) turtle.done()
pen.circle(50,180) \ No newline at end of file
pen.forward(100)
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