我一直在用html链接网页,但最近看到有人使用python链接html页面。在python/flask中链接html是否有额外的好处?
如果您在烧瓶应用程序中有模板,并且 html 链接解析为通过 url_for 或类似方式获得的变量 - 这是使用链接的首选方式,因为如果烧瓶视图路由将被修改,html 中的链接将被修改为(自动(,因此它是更稳定的变体,因为它减少了人为因素错误的可能性。
我一直在用html链接网页,但最近看到有人使用python链接html页面。在python/flask中链接html是否有额外的好处?
如果您在烧瓶应用程序中有模板,并且 html 链接解析为通过 url_for 或类似方式获得的变量 - 这是使用链接的首选方式,因为如果烧瓶视图路由将被修改,html 中的链接将被修改为(自动(,因此它是更稳定的变体,因为它减少了人为因素错误的可能性。
javascript python java c# php android html jquery c++ css ios sql mysql arrays asp.net json python-3.x ruby-on-rails .net sql-server django objective-c excel regex ruby linux ajax iphone xml vba spring asp.net-mvc database wordpress string postgresql wpf windows xcode bash git oracle list vb.net multithreading eclipse algorithm macos powershell visual-studio image forms numpy scala function api selenium