标签:
import os logf = os.path.join(os.getcwd(),‘log.log‘) fw = open(logf,‘a‘) fw.write(‘aa‘) fw.close()
获取当前路径
原文地址:http://www.cnblogs.com/dreamer-fish/p/5279836.html