
Python
逆流向上
大家好请多多关照
展开
-
列出某一路径下所有的文件及文件夹,并打印出来,同一目录下,文件合并刷选出来
import osimport os.pathroot_dir = u'E:\pythonDir';for parent, dir_names, file_names in os.walk(root_dir): for dir_name in dir_names: if str != parent: print u'目录:' +原创 2017-09-20 12:01:07 · 602 阅读 · 0 评论 -
python国内豆瓣源
豆瓣:https://pypi.doubanio.com/simple/pip3 install -i https://pypi.doubanio.com/simple/ seleniumeasy_install -i https://pypi.doubanio.com/simple/ selenium原创 2017-10-19 10:23:09 · 938 阅读 · 0 评论 -
Python | 用Pyinstaller打包发布exe应用
工具/原料 Python2.7.11 Pyinstaller 3.1.1 安装Pyinstaller 1 按照习惯,我们使用pip来安装模块。我们一直以来强调,要用最偷懒的方法。写代码的人尤其如此。人生苦短,你要偷懒~ 32Python | 如何用pip安装模块和包 2 虽然部分第三方模块有独立的exe安装包,不过使用pip安装的另一个好处是,...原创 2018-09-25 14:11:24 · 479 阅读 · 0 评论 -
python常用模块
本节大纲:1.模块介绍2.time&datetime3.random.4.os5.sys6.shutil7.json&picle8.shelve9.xml处理10.yaml处理11.configparser12.hashlib13.subprocess14.logging模块15.re正则表达式模块的定义:用一堆代码实...转载 2019-01-22 10:31:45 · 329 阅读 · 0 评论 -
50个python常用模块功能
Python具有强大的扩展能力,我列出了50个很棒的Python模块,包含几乎所有的需要:比如Databases,GUIs,Images, Sound, OS interaction, Web,以及其他。推荐收藏。 Graphical interface wxPython http://wxpython.org Graphical interface pyGtk http://www....转载 2019-01-22 10:34:18 · 521 阅读 · 0 评论