除了@Will 的回答之外,python-dotenv 模块还带有一个find_dotenv() ,它将尝试查找.env 文件。 # settings.py import os from dotenv import load_dotenv ...
確定! 回上一頁