os.path.realpath(__file__) 返回當前腳本的abspath; os.path.split(abspath)[0]返回當前目錄. import os.path dirname = os.path.dirname(__file__) or '.'.
確定! 回上一頁