📜  python加载图像文件需要绝对路径 - Python代码示例

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

代码示例1
import os
# Look to the path of your current working directory
working_directory = os.getcwd()
# Or: file_path = os.path.join(working_directory, 'my_file.py')
file_path = working_directory + 'my_file.py'