方法1: __file__. 正如其他人所說。您可能還想使用os.path.realpath消除符號鏈接: import os os.path.realpath(__file__) ...
確定! 回上一頁