📜  当前文件的 python 名称 - Python 代码示例

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

代码示例3
Use __file__. If you want to omit the directory part (which might be present), you can use os.path.basename(__file__)