![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
axj1990
这个作者很懒,什么都没留下…
展开
-
字符串单词反转
class Solution: # @param s, a string # @return a string def reverseWords(self, s): if(len(s)==0): return s; s=' '.join(s.split());#去掉所有的空格,只保留字符(串)之间的空格; #s原创 2015-05-29 15:13:02 · 362 阅读 · 0 评论 -
Python匿名函数详解
Python匿名函数详解 标签: Python函数式编程 2014-10-15 17:22 9188人阅读 评论(0) 收藏 举报 以前自己一直没搞明白Python中的匿名函数,现在拿这个问题基本上搞明白了,拿自己的理解整成一篇文章,附带大量例子,让其更加好理解。 在编程语言中,函数的应用: 1. 代码块重复,这时候必须考虑用到函数,降低程序的冗余度 2转载 2017-07-12 08:53:54 · 419 阅读 · 0 评论