python2 and python3

版权声明:belongs to tony2278 https://blog.csdn.net/tony2278/article/details/89961072

take a look at Python 3.0 Wiki Built-in Changes section, where it is stated:


Removed dict.iteritems(), dict.iterkeys(), and dict.itervalues().

Instead: use dict.items(), dict.keys(), and dict.values() respectively.

猜你喜欢

转载自blog.csdn.net/tony2278/article/details/89961072