网站首页
编程语言
数据库
系统相关
其他分享
编程问答
Flask013
2023-05-31
Flask013_宏和 import 语句
宏 forms.html1{%macroinput(name,value="",type="text")%}2<inputtype="{{type}}"value="{{value|escape}}"name="{{name}}">3{%endmacro%}45{%macrotextarea(name,value="&q
2023-05-29
Flask013_ for 循环语句
调用
[email protected]
('/for')2deffor_statement():3books=[{4'title':'三国演义',5'author':'罗贯中',6'price':1007},8{9'ti
2023-05-29
Flask013_ if 判断语句
调用
[email protected]
('/if')2defif_statement():3age=184returnrender_template('if.html',age=age)if.html1<!DOCTYPEhtml>2<htmllang="en">3<head>4<metacharset="UTF-8