
python
文章平均质量分 59
powbetter
study hard , play hard
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
关于python编辑时的"#!/usr/bin/python"
#!/usr/bin/python 这一行代码是用来干什么的? 如果没有它,好像对脚本功能也没什么影响。 但是它其实是用来指定用什么解释器运行脚本以及解释器所在的位置。以test.py为例,脚本内容如下:def test(): print ‘hello, world’if name == “main“: test()运行脚本: python test.py原创 2016-03-16 21:32:29 · 499 阅读 · 0 评论 -
关于Python 中的 map()函数
首先调用文档中关于map函数的介绍map(function, iterable, …)Apply function to every item of iterable and return a list of the results. If additional iterable arguments are passed, function must take that many arguments原创 2016-04-05 19:41:11 · 826 阅读 · 0 评论