摘要:
import osb= os.getcwd() # 获取当前工作目录,即当前python脚本工作的目录路径print(b)os.chdir("bin") # 改变当前脚本工作目录;相当于shell下cdprint(os.getcwd())os.chdir("../")print(os.getcwd())os.path.abspath # 获取当前文件的绝对路径os.path.dirname # 获... 阅读全文
posted @ 2017-06-16 17:18
无名小妖
阅读(169)
评论(0)
推荐(0)
2017年6月16日