python读取文件同时输出行号和内容file = open('file.txt','r')for (num,value) in enumerate(file): print "line number",num,"is:",valuefile.close()……继续阅读 » 水墨上仙 9年前 (2017-07-03) 1465浏览 590个赞
python实现简单的soap客户端# $Id: testquote.py 2924 2006-11-19 22:24:22Z fredrik $# delayed stock quote demo (www.xmethods.com)from elementsoap.ElementSOAP import *class QuoteService……继续阅读 » 水墨上仙 9年前 (2017-07-03) 3071浏览 533个赞
python 递归搜索文件夹下的指定文件import osdef look_in_directory(directory): """Loop through the current directory for the file, if the current item is a directory……继续阅读 » 水墨上仙 9年前 (2017-07-03) 3063浏览 1202个赞