python2.7:IOError: [Errno 2] No such file or directory:
2016-03-25 09:51
666 查看
import os
print os.getcwd() #打印出当前工作目录
os.chdir('the dir which include the file a.txt') #修改当前工作目录
print os.getcwd() #打印出当前工作目录
os.chdir('the dir which include the file a.txt') #修改当前工作目录
相关文章推荐
- python 如何重载模块,用一个简单的例子来解释
- PHP + PYTHON 多任务多线程,后台运行,计划任务-实现方法
- Python信号处理模块signal
- python中字典(dict)常见用法
- python2.7:模块安装4种方法
- Python基础教程
- python写个图片爬虫
- python中元组(tuple)用法总结
- python
- 转载一篇python类的博文
- Python入门 之 dict
- Python-pip 安装失败问题解决
- 初始Python类
- Python基础教程之正则表达式基本语法以及re模块
- 用Python实现斐波那契(Fibonacci)函数
- python Django批量导入不重复数据
- python Django批量导入数据
- python Django框架实现自定义表单提交
- ubuntu ,python 安装pillow
- Python学习第十一天