1、add_url_rule(rule, endpoint=None, view_func=None) 注:这个方法用来添加url与视图函数的映射,如果没有填写`endpoint`,默认使用`view_func`的名字作为`endpoint`。 app.add_url_rule('/list/',v ...
分类:
其他好文 时间:
2020-02-25 16:11:29
阅读次数:
76
error in ./src/assets/styles/app.scss Module build failed: @import "./reset.scss"; ^ Invalid CSS after "v": expected 1 selector or at-rule, was 'var a ...
1.第一步需要到github上下载Auth类放入 extend/auth/Auth.php https://github.com/5ini99/think-auth 2.第二步,添加固定的三个数据表。 -- think_auth_rule,规则表, -- id:主键,name:规则唯一标识, tit ...
分类:
Web程序 时间:
2020-02-19 18:44:17
阅读次数:
79
mycat的配置 cacheservice.properties:路由缓存相关配置文件 index_to_charset.properties:字符集映射关系 rule.xml:分片规则 schema.xml:逻辑库定义 sequence_conf:sequence配置信息(一般用基于db,time ...
分类:
数据库 时间:
2020-02-15 15:50:08
阅读次数:
96
netsh advfirewall firewall set rule name="lh_Socket5_in" dir=in new enable=no netsh advfirewall firewall set rule name="lh_Socket5_out" dir=out new en ...
分类:
其他好文 时间:
2020-02-15 15:38:55
阅读次数:
91
一、视图 1、route (1)路由: 将从客户端发送过来的请求分发到指定函数上 (2)语法: @app.route(‘/rule/’) def hello(): return ‘Hello World!’ @app.route(‘/rule/<id>/’) def hello(id): retur ...
分类:
其他好文 时间:
2020-02-08 00:48:26
阅读次数:
68
# 动词(Verb) 过去式(Past tense) 发音(pronunciation) 动词结尾加-ed的读音主要有三种: 以清辅音结尾的读/t/,如worked blocked 以浊辅音和元音结尾的读/d/,如rained moved 以t和d结尾的读/id/, 如 created, plant ...
分类:
其他好文 时间:
2020-02-06 12:33:29
阅读次数:
82
1. 路由设置的2种方式 查看源码,route方法里,本质是执行app.add_url_rule() 因此可以这么写(主流方式): @app.route("/xxx") def index(): return "index!" 还可以这么写: def index(): return "index!" ...
分类:
其他好文 时间:
2020-02-03 11:53:50
阅读次数:
74
firewalld FirewallD 使用服务service 和区域zone来代替 iptables 的规则rule和链chain,默认情况下,有以下的区域zone可用: drop – 丢弃所有传入的网络数据包并且无回应,只有传出网络连接可用。 block — 拒绝所有传入网络数据包并回应一条主机 ...
分类:
其他好文 时间:
2020-02-02 23:32:16
阅读次数:
101
题目 Being unique is so important to people on Mars that even their lottery is designed in a unique way. The rule of winning is simple: one bets on a nu ...
分类:
其他好文 时间:
2020-01-28 19:02:09
阅读次数:
70