📜  获取当前文件名 python 代码示例

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

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