- 博客(5)
- 收藏
- 关注
原创 python set()
python 中的set() 内建函数是集合的一些操作:1.a = set('abc') b = set('cdefg') print a&b print a|b a.add('hello') print a a.remove('hello') print a a.update('hello') print a
2017-01-20 11:31:50 252
原创 python :built-in functions
今天研究下python 的 内建函数: Built-in Functions abs()divmod()input()open()staticmethod()all()enumerate()int()ord()str()any()eval()
2017-01-20 11:01:26 412
转载 python module: collection 的 Counter()
转:http://www.pythoner.com/205.html1.collections模块collections模块自Python 2.4版本开始被引入,包含了dict、set、list、tuple以外的一些特殊的容器类型,分别是:OrderedDict类:排序字典,是字典的子类。引入自2.7。namedtuple()函数:命名元组,是一个工厂函数。引入自2.6。C
2017-01-17 17:34:20 2622
原创 python: print list
1.list1 = ['physics', 'chemistry', 1997, 2000];list2 = [1, 2, 3, 4, 5, 6, 7 ];print ("list1[0]: ", list1[0])print ("list2[1]: ", list2[1])2.>>> list = [1,2,3,4,5]>>> print
2017-01-17 15:46:42 1376
原创 最近不忙,想要学习一下python
不知道ic verification这一行咋样,感觉都可能几年后被淘汰,或者变成非常没有含量的工作。 也不知道干些其他啥的,学点语言,接触点软件还是好一点吧。
2017-01-17 15:37:32 182
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人