摘要: 一、os.path os.path.abspath(__file__) 拿到当前程序(文件)的绝对目录。 os.path.split(pathname) 返回一个元组,第零个元素为文件上级绝对目录,第一个为文件名 如:os.path.split('/home/user/lina/panda.ini' 阅读全文
posted @ 2018-08-19 23:46 G1733 阅读(529) 评论(0) 推荐(0) 编辑