Flask.__init__ 的签名有一个static_path 参数,但没有记录在案。该参数有什么作用?
class Flask(
import_name,
static_path=None, static_url_path=None, static_folder='static',
template_folder='templates',
instance_path=None, instance_relative_config=False, root_path=None
)
请您参考如下方法:
这是 static_url_path 的旧名称。它已被弃用,并将在 1.0 版本中删除。它被更改是因为 static_path 和 static_folder 太容易混淆了。
