作业1

l = [['Apple','Google','Microsoft'],\
     ['Java','Python','Ruby','PHP'],\
     ['Adam','Bart','Lisa']\
     ]

names= ['Michael','Bob','Tracy']  #list
print(names[1])
scores = [95,75,85]  #list

d = {'Michael':95,'Bob':75,'Tracy':85}  #dict

print(d['Bob'])
import turtle
turtle.speed(15)
colors =['red','orange','blue','green','pink','yellow','white','red']

for i in range(250):
    turtle.pencolor(colors[i%8])
    turtle.forward(i)
    turtle.left(100)

turtle.done()

posted @ 2018-06-04 16:57  粉红猪  阅读(114)  评论(0编辑  收藏  举报