
python基础疑问
张余歌
云计算行业,广泛涉猎IT的新玩意
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
' '.join(source)解析
最近在看简明python教程,' '.join(source)这个卡了一下,看了半天,最终百度了下,还是理解了什么意思 我们看下join方法 str.join(iterable) Return a string which is the concatenation of the strings in the iterable iterable. The separator bet原创 2016-02-25 15:49:32 · 1081 阅读 · 0 评论 -
今天搞搞python基础
遇到个lambda,不知道什么鬼,先放着 看到编码风格了,虽然我很想找个程序来搞搞,还是先看看规范,这是一种态度。 https://www.python.org/dev/peps/pep-0008/ 有点长,我就简要看看。。。。 这条直接伤害了我的习惯:把空格放到操作符两边,以及逗号后面,但是括号里侧不加空格:a = f(1, 2) + g(3, 4)。 很好,步入数据结构原创 2016-08-19 22:53:39 · 1082 阅读 · 0 评论