查找当前文件路径
def getPath():
homedir=os.path.split(os.path.realpath(__file__))[0]
return homedir
编辑文件
path=Result.getPath()
f=open(path+"\\result.html","w")
f.write(htmlformat)
f.close()
正则表达python用法
Import re
test=re.compile('\.py$',re.IGNORECASE)
filter()
lambda用法
map用法