Python查看当前文件的绝对路径

import os
print(os.path.abspath(__file__))

  

posted @ 2021-08-21 11:21  lucky_tomato  阅读(312)  评论(0编辑  收藏  举报