码迷,mamicode.com
首页 >  
搜索关键字:rule    ( 890个结果
Flask 第四话之视图高级类用法
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
scss文件报错处理 (报错信息Invalid CSS after "v": expected 1 selector or at-rule, was 'var api = require)
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 ...
分类:Windows程序   时间:2020-02-19 20:39:36    阅读次数:430
thinkphp auth 后端权限验证。
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 - 数据库中间件 学习记录4
mycat的配置 cacheservice.properties:路由缓存相关配置文件 index_to_charset.properties:字符集映射关系 rule.xml:分片规则 schema.xml:逻辑库定义 sequence_conf:sequence配置信息(一般用基于db,time ...
分类:数据库   时间:2020-02-15 15:50:08    阅读次数:96
CMD 临时关闭和打开防火墙规则
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
Flask之视图,会话、模板
一、视图 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
English Rule Summer
# 动词(Verb) 过去式(Past tense) 发音(pronunciation) 动词结尾加-ed的读音主要有三种: 以清辅音结尾的读/t/,如worked blocked 以浊辅音和元音结尾的读/d/,如rained moved 以t和d结尾的读/id/, 如 created, plant ...
分类:其他好文   时间:2020-02-06 12:33:29    阅读次数:82
Flask知识总结
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
防火墙 firewall iptables
firewalld FirewallD 使用服务service 和区域zone来代替 iptables 的规则rule和链chain,默认情况下,有以下的区域zone可用: drop – 丢弃所有传入的网络数据包并且无回应,只有传出网络连接可用。 block — 拒绝所有传入网络数据包并回应一条主机 ...
分类:其他好文   时间:2020-02-02 23:32:16    阅读次数:101
PAT Advanced 1041 Be Unique (20) [Hash散列]
题目 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
890条   上一页 1 ... 8 9 10 11 12 ... 89 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!