摘要:
''' 操作系统的命令操作模块 ''' import os #获取当前工作目录,即当前python脚本工作的目录路径 print(os.getcwd()) #更改当前工作目录,r不用转义 os.chdir(r"D:\work") #此时目录已经更改 print(os.getcwd()) #返回当前目录 '.' os.curdir #返回当前目录的父目录 '..' os.pardir ... 阅读全文
posted @ 2018-04-12 19:37
与君同悦
阅读(163)
评论(0)
推荐(0)

浙公网安备 33010602011771号