flask应用中取得config的配置 from flask import current_app config = current_app.config SITE_DOMAIN = config.get('SITE_DOMAIN')