#!/usr/bin/python
# -*-coding:utf-8-*-
#除字典以外,字符串,列表,元组都可以称为序列
s = "hello"
#l是列表
l = [1, 2, 3, 'a', 'b']
#t是元组
t = (7, 8, 9, 'x', 'y')
#d是字典
d = {1:111, 2:222, 5:555, 3:333}
#print '开始遍历列表l:', '\n'
#for x in l:
# if x >= 2:
# print x
#print '开始遍历字符串s:', '\n'
#for x in range(len(s)):
# print s[x]
for x in d:
print x, ':', d[x]
#print d.items()
for k, v in d.items():
print k, v