标签:
1: >>> x
2: {‘name‘: ‘Bill‘}
3: >>> x.items()
4: dict_items([(‘name‘, ‘Bill‘)])
5:
6: #python3中不再包含iteritems
7: >>> x.iteritems()
8: Traceback (most recent call last):
9: File "<pyshell#66>", line 1, in <module>
10: x.iteritems()
11: AttributeError: ‘dict‘ object has no attribute ‘iteritems‘
12:
标签:
原文地址:http://www.cnblogs.com/100thMountain/p/4719502.html