Python26创建集合和Python27的区别
在Python26中,创建集合可以用setname = set(iteration)来实现。
比如:
Python 2.6.6 (r266:84292, Dec 7 2011, 20:48:22)
[GCC 4.4.6 20110731 (Red Hat 4.4.6-3)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> set_1 = set([1, 2,
原创
2022-04-25 14:54:26 ·
1634 阅读 ·
0 评论