在Python中,可以使用os模块的os.path.abspath()方法来显示文件路径。例如: import os file_path = 'test.txt' print(os.path.abspath(file_path)).
確定! 回上一頁