Commit 4c25addf by BellCodeEditor

auto save

parent a16a0da1
Showing with 59 additions and 6 deletions
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
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
message = "诺依,周末一起去看动漫展吧!"
# 请使用索引的知识,取出message所有元素(不用遍历的方式)
for i in range(len(message)):
print(message[i])
\ No newline at end of file
import turtle
pen=turtle.Pen()
pen1=turtle.Pen()
pen2=turtle.Pen()
pen3=turtle.Pen()
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
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