摘要: Python的os模块 一、os.getcwd() 获取当前工作目录。 import os print(os.getcwd()) # I:\Python程序 二、os.chdir(‘路径’) 改变当前脚本工作目录;相当于shell下cd。 三、os.curdir 四、os.pardir 五、os.m 阅读全文
posted @ 2017-10-28 11:12 xsan 阅读(292) 评论(0) 推荐(0) 编辑