for循环

for循环---->用户按照顺序循环

for temp in li :
    print(temp)

dic = {
    'apple':10,
    'iphne':5000,
    'watch':30000,

}
for i in dic :
    print(i,dic[i])

msg = {'a','b', 'c'}
for i in range(len(msg)):
    print(i)
posted @ 2018-03-21 17:23  可爱的红领巾  阅读(131)  评论(0编辑  收藏  举报