列表的应用
import turtle turtle.speed(10) colors = ['red','purple','blue','green','yellow','orange'] for i in range(50): turtle.pencolor('blue') turtle.forward(i) turtle.left(59) turtle.done()
l = [['Apple','Google','Microsoft'],\ ['Java','Python','Ruby','PHP'],\ ['Adam','Bart','Lisa']\ ] names = ['Michael','Bob','Tracy'] #list print(names[1]) scores =