2016年3月15日
摘要: import os print os.path.abspath(__file__) #返回脚本名称(包含全路径),如C:\Django\workplace\sf\sinfors\tests5.py print os.path.dirname(os.path.abspath(__file__)) #返回脚本所在目录,如C:\Django\workplace\sf\sinfors print o... 阅读全文
posted @ 2016-03-15 15:53 momingliu11 阅读(225) 评论(0) 推荐(0) 编辑