Commit 9d4ba5e2 by BellCodeEditor

save project

parent 89e7bcdd
Showing with 13 additions and 13 deletions
a=["关","张","赵","李","王","高","徐"]
a[3]="胡"
a[5]="肖"
print(a)
i=1
while i<7:
if a[i]=="肖":
print("找到了索引为"+str(i))
i=i+1
\ No newline at end of file
\ No newline at end of file
import turtle
pen = turtle.Pen()
screen = turtle.Screen()
screen.bgcolor("black")
colors=["white","blue","violet","cyan"]
i=1
pen.speed(0)
for i in range(1,1000000000000000000000):
pen.pencolor(colors[i%4])
pen.forward(i)
pen.right(91)
pen.hideturtle()
turtle.done()
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