Python查看当前脚本文件名

脚本名字test.py
print(__file__)
输出:test.py

  

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