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

Administrator / lesson7_3

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

auto save

parent a16a0da1
Show whitespace changes
Inline Side-by-side
Showing with 59 additions and 6 deletions
  • 123.py
  • Untitled-1.py.py
  • diy3.py
123.py 0 → 100644
View file @ 4c25addf
import turtle
pen=turtle.Pen()
for i in range(6):
pen.forward(100)
pen.left(60)
pen.hideturtle()
turtle.done()
\ No newline at end of file
This diff is collapsed. Click to expand it.
Untitled-1.py.py 0 → 100644
View file @ 4c25addf
import turtle
screen=turtle.Screen()
screen.bgcolor(light blue)
pen=turtle.Pen()
pen.penup()
pen.goto(-100,0)
text=screen.textinput('提示','你想对2020年说什么')
pen.write(text,font=("Times",20,"normal"))
pen.hideturtle()
turtle.done()
\ No newline at end of file
This diff is collapsed. Click to expand it.
diy3.py
View file @ 4c25addf
message = "诺依,周末一起去看动漫展吧!" import turtle
pen=turtle.Pen()
# 请使用索引的知识,取出message所有元素(不用遍历的方式) pen1=turtle.Pen()
for i in range(len(message)): pen2=turtle.Pen()
print(message[i]) pen3=turtle.Pen()
\ No newline at end of file pen4=turtle.Pen()
pen.pencolor('blue')
pen.penup()
pen.goto(-100,0)
pen.pendown()
pen.circle(50)
pen.pensize(15)
pen1.pencolor('black')
pen1.pendown()
pen1.circle(50)
pen1.pensize(15)
pen2.pencolor('red')
pen2.penup()
pen2.goto(100,0)
pen2.pendown()
pen2.circle(50)
pen2.pensize(15)
pen3.pencolor('yellow')
pen3.penup()
pen3.goto(-50,-100)
pen3.pendown()
pen3.circle(50)
pen3.pensize(15)
pen4.pencolor('green')
pen4.penup()
pen4.goto(50,-100)
pen4.pendown()
pen4.circle(50)
pen.hideturtle()
pen1.hideturtle()
pen2.hideturtle()
pen3.hideturtle()
pen4.hideturtle()
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