2015年10月30日

python--执行文件的绝对路径

摘要: 1、__file__属性对应文件名。2、os.path.realpath(__file__)这样就可以得到文件的绝对路径。 阅读全文

posted @ 2015-10-30 15:12 蒋乐兴的技术随笔 阅读(540) 评论(0) 推荐(0) 编辑

导航