import os os.path.join(os.path.dirname(__file__), "default.yaml"). 只需要: from pathlib import Path Path(__file__).parent / "default.yaml".
確定! 回上一頁