python
angry_grina
这个作者很懒,什么都没留下…
展开
-
最近不忙,想要学习一下python
不知道ic verification这一行咋样,感觉都可能几年后被淘汰,或者变成非常没有含量的工作。 也不知道干些其他啥的,学点语言,接触点软件还是好一点吧。原创 2017-01-17 15:37:32 · 192 阅读 · 0 评论 -
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 · 1385 阅读 · 0 评论 -
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 · 2625 阅读 · 0 评论 -
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 · 424 阅读 · 0 评论 -
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 · 260 阅读 · 0 评论