
python
jackywgw
这个作者很懒,什么都没留下…
展开
-
linux 下直接运行.py文件
在linux命令行下运行python,可以直接输出hello worldjackywgw@jackywgw-A8F:~/python_learning$ pythonPython 3.3.6 (default, Apr 17 2015, 00:20:01) [GCC 4.9.2] on linuxType "help", "copyright", "credits" or "lice原创 2015-10-01 17:50:17 · 30565 阅读 · 2 评论 -
python 闭包
python 闭包原创 2015-10-09 16:54:39 · 484 阅读 · 0 评论 -
python2.6---把用户输入的不规范的英文名字,变为首字母大写,其他小写的规范名字
利用map()函数,把用户输入的不规范的英文名字,变为首字母大写,其他小写的规范名字。输入:['adam', 'LISA', 'barT'],输出:['Adam', 'Lisa', 'Bart']。原创 2015-10-09 11:16:41 · 7928 阅读 · 4 评论