-
<>的作用: 提取参数 例如<int :id>
-
自定义转换器:
(1): 导入包
python
#关于自定义的包
from werkzeug.routing import BaseConverter
(2)自定义转换器的类模板:
