当我们用Flask写好一个app后, 运行app.run()表示监听指定的端口, 对收到的request运行app生成response并返回. 现在分析一下, 运行app.run()后具体发生了什么事情 Flask定义的run方法如下: def run(self, host=None, port=N ...
分类:
移动开发 时间:
2020-04-04 14:17:29
阅读次数:
89
环境 qt5.9.0+python3.5.2 (都是32位) 问题 1.导入不了<Python.h>头文件和libs的问题 可能与下面几点有关: 建议路径不要带空格,中文等,最好python直接就安装在某个盘的根目录,好找。例如:D:/python35-32/ qt版本和python版本都一致,以前 ...
分类:
编程语言 时间:
2020-04-04 09:36:02
阅读次数:
133
标签选择器、类选择器、ID选择器、兄弟选择器、后代选择器、子代选择器、css3选择器... ...
分类:
Web程序 时间:
2020-04-03 00:59:34
阅读次数:
99
export default new Router({ mode: 'history', //路由模式,取值为history与hash base: '/', //打包路径,默认为/,可以修改 routes: [ { path: string, //路径 component: Component; / ...
分类:
其他好文 时间:
2020-04-02 19:49:42
阅读次数:
200
在日常使用,还有面试中,经常会涉及到AOP的相关知识,AOP虽好,但是有一些小的细节注意不到,可能会被坑; 1.动态代理类的方法互调,被调用的方法会不会生成代理? 2.静态成员类,调用过程中会不会生成代理? 对以上这些问题进行测试: 首页,这是AOP切面代码 @Component @Aspect p ...
分类:
其他好文 时间:
2020-04-02 16:08:10
阅读次数:
73
相关资料: https://www.baidu.com/link?url=yYEHJesIUg6HguekaIW-U0HtjtLn430Dh0NXSc7ej5ixppqcq21rsYMvlCo_qNOP&wd=&eqid=87bf080a00000c50000000035e83f9e4 实例: 接口 ...
分类:
其他好文 时间:
2020-04-01 14:27:23
阅读次数:
68
1. 连接sqlplus 创建一个表 SQL> conn liang/chengce243 Connected. QL> create table T8 as select * from user_objects; Table created. SQL> select count(*) from T ...
分类:
数据库 时间:
2020-04-01 13:10:54
阅读次数:
82
题目: Each month Blake gets the report containing main economic indicators of the company "Blake Technologies". There are n commodities produced by the ...
分类:
其他好文 时间:
2020-04-01 12:47:19
阅读次数:
66
对比一下串行流和并行流的效率: /** * @author WGR * @create 2020/3/31 */ public class Demo07Parallel { private static final int times = 500000000; long start; @Before ...
分类:
其他好文 时间:
2020-03-31 18:53:57
阅读次数:
56
MySQL [(none)]> show variables like '%timeout%'; + + + | Variable_name | Value | + + + | connect_timeout | 10 | | delayed_insert_timeout | 300 | | inn ...
分类:
数据库 时间:
2020-03-31 17:18:57
阅读次数:
74