Commit f534207a by BellCodeEditor

auto save

parent 027d3568
Showing with 50 additions and 4 deletions
a="天"
b="地"
c=a
a=b
b=c
print(a,b)
\ No newline at end of file
a="天"
b="地"
c=a
a=b
b=c
print(a,b)
\ No newline at end of file
import turtle
import random
turtle.speed(0)
turtle.bgcolor("black")
turtle.pensize(2)
turtle.pencolor("white")
acc_ext=0
r=10
turtle.penup()
turtle.goto(0,-r)
turtle.pendown()
while True:
turtle.color(random.choice(["white","black"]))
ext=random.random()*90
turtle.circle(r,ext)
acc_ext+=ext
if acc_ext>360:
acc_ext=0
turtle.penup()
turtle.goto(0,-r)
turtle.setheading(0)
turtle.pendown()
r+=3
\ No newline at end of file
message = "诺依,周末一起去看动漫展吧!"
# 请对message进行遍历,取出所有元素
import turtle
pen=turtle.Pen()
pen.pendown()
pen.pensize(2)
pen.pencolor("red")
turtle.speed(20)
for i in range(100):
pen.circle(i+20)
pen.right(20)
pen.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