列表的应用

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 =

 

posted @ 2018-06-04 16:50  12z  阅读(101)  评论(0编辑  收藏  举报