返回顶部
扩大
缩小

Gaidy's

2019年11月14日

2.Flask jinjia2模板

摘要: 1.1.模板传参 (1)主程序 from flask import Flask,render_template app = Flask(__name__) @app.route('/') def hello_world(): context = { 'username':'derek', 'age' 阅读全文

posted @ 2019-11-14 16:08 Gaidy 阅读(233) 评论(0) 推荐(0)

2.Django路由规则

摘要: 路由规则 1.基于正则的url 在templates目录下创建index.html、detail.html文件 (1)index.html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</tit 阅读全文

posted @ 2019-11-14 16:04 Gaidy 阅读(139) 评论(0) 推荐(0)

2.CSS

摘要: 选择器 1.标签上直接设置style属性 <p style="color: red">直接标签里面写</p> 2.id选择器 <style> #i1{ color: green; } </style> </head> <body> <p id="i1">以#开头命名</p> </body> 3.cl 阅读全文

posted @ 2019-11-14 16:03 Gaidy 阅读(413) 评论(0) 推荐(0)

导航