人工智能技术+Flask模板的使用【福州智慧城市】
views.py代码
from flask import Blueprint,render_template
zs = Blueprint('blue',__name__)
@zs.route('/')
def index():
namestr='zhangsan'
dict1={
'a':1,'b':2,'c':3}
strs1=['福职','滴滴']
return render_template('demo.html',dict=dict1,name=namestr,str=strs1)
demo.html代码
<!DOCTYPE html>
<html lang="en">
<style>
h2{
color: red;
}
</style>
<link href="static/mycss.css" rel=