Articles
274
Tags
188
Categories
0
时空漫步者的日记
Search
python 通过 os 更改代码运行目录
Created
2024-05-23
|
Updated
2024-10-29
|
Post Views:
1
2
3
import
os
os.chdir(
"../"
)
# 修改当前工作目录
print
(os.getcwd())
# 获取当前工作目录
Author:
bitterteaer
Link:
https://bitterteaer.asia/python-%E9%80%9A%E8%BF%87-os-%E6%9B%B4%E6%94%B9%E4%BB%A3%E7%A0%81%E8%BF%90%E8%A1%8C%E7%9B%AE%E5%BD%95/
Copyright Notice:
All articles in this blog are licensed under
CC BY-NC-SA 4.0
unless stating additionally.
python
os
chdir
Previous
通过 dockerfile 部署 opencv-python 相关时候需要引入的依赖库
Next
Chrome浏览器中使用JavaScript自动下拉刷新页面
Related Articles
2024-07-24
StopIteration 异常标志着协程的结束
2024-10-23
selenium:如何解决打开网页加载时间过长问题
2024-07-10
python 操作 ftp
2024-07-24
io多路复用与python协程asyncio的关系
2024-10-08
pip-compile & requirements.in
2024-07-21
python 协程详解
bitterteaer
莫等闲,白了少年头。
Articles
274
Tags
188
Categories
0
gitee
Announcement
This is my Blog
Recent Post
Extraneous non-props attributes (id) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.
2024-11-13
Mac安装mysqlclient报错:Can not find valid pkg-config name
2024-11-06
blender骨骼绑定8大检查
2024-10-27
查看本机的出网ip地址
2024-10-25
selenium:如何解决打开网页加载时间过长问题
2024-10-23
Search
Loading the Database