Python查看当前脚本文件名

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

  

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