摘要: #coding:utf-8import os#获取文件后缀名称dict = {} #存放文件后缀名path = r'E:\test\'for dirpath,dirnames,filenames in os... 阅读全文
posted @ 2015-05-23 22:07 星空天宇 阅读(103) 评论(0) 推荐(0) 编辑
摘要: Python的文件操作函数:open(filename,mode)文件打开模式 执行操作'r' 以只读方式打开(默认)'w’ 以写入的方式打开文件,会覆盖已经存在的文件'x' 如果指定文件已经存在,使用此模式打开... 阅读全文
posted @ 2015-05-23 21:47 星空天宇 阅读(93) 评论(0) 推荐(0) 编辑
摘要: 参考网上高手示例程序,利用了多线程技术,Python版本为2.7#-*-coding:utf8-*-import urllib2import reimport threadingimport timerawPro... 阅读全文
posted @ 2015-05-23 21:21 星空天宇 阅读(136) 评论(0) 推荐(0) 编辑