📜  相对路径python代码示例

📅  最后修改于: 2022-03-11 14:45:08.289000             🧑  作者: Mango

代码示例3
import os
dirname = os.path.dirname(__file__)
filename = os.path.join(dirname, 'relative/path/to/file/you/want')