__all__ = [<string>] 它是一个string元素组成的list变量,定义了当你使用 from <module> import * 导入某个模块的时候能导出的符号(这里代表变量,函数,类等)。 其实就是代码保护,限定本模块中只有哪些能被import。 举例:foo.py __all_ ...
分类:
编程语言 时间:
2021-06-04 18:49:33
阅读次数:
0
Lambda integration with ALB HTTP(s) Lambda function must be registered in a target group ALB Multi-Header Values If a client connect to ALB, we can co ...
分类:
移动开发 时间:
2021-06-03 18:21:09
阅读次数:
0
方法一: 在 package.json 中添加 --open 方法二: 在 vue.config.js 中,devServer 添加加 open:true ,没有vue.config.js,自己创建一个 module.exports = { devServer: { open: true } } ...
分类:
其他好文 时间:
2021-06-03 18:18:31
阅读次数:
0
使用模块 ngx_http_gzip_module 用gzip方法压缩响应数据,节约带宽 一、启用或禁用gzip压缩 gzip on | off; 二、压缩比由低到高:1 到 9, 默认:1 gzip_comp_level level; 压缩比越高,越消耗CPU 三、匹配到客户端浏览器不执行压缩 g ...
分类:
其他好文 时间:
2021-06-03 18:08:25
阅读次数:
0
测试名称 测试内容 Function Test 功能测试—对于各个功能模块进行测试 Scenario Test 场景测试—对一个用户场景测试组成的模块 System Test 系统测试—对整个系统功能的测试 Random Test 随机测试—随机进行测试,查看在探索情况下可能出现的问题 Buddy ...
分类:
其他好文 时间:
2021-06-03 17:56:21
阅读次数:
0
excel xlsxwriter XlsxWriter is a Python module that can be used to write text, numbers, formulas and hyperlinks to multiple worksheets in an Excel 200 ...
分类:
编程语言 时间:
2021-06-02 20:53:25
阅读次数:
0
1.问题描述 已经执行了npm i webpack-dev-server -D完成安装,可是在运行命令npx webpack-dev-server时还是报错,如图所示: 2.问题分析 package.json文件中"webpack-cli"的版本为4开头,而 "webpack-dev-server" ...
分类:
Web程序 时间:
2021-06-02 20:23:13
阅读次数:
0
参考:https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Operators/this 值: 当前执行上下文(global、function 或 eval)的一个属性,在非严格模式下,总是指向一个对象,在严格模式下可以是 ...
分类:
其他好文 时间:
2021-06-02 20:18:08
阅读次数:
0
// 基于对象封装一个集合 function Set() { // 属性 this.items = {}; // 方法 // add 往集合中添加元素 Set.prototype.add = function (value) { // 先判断是否有这个元素 if (this.has(value)) ...
分类:
Web程序 时间:
2021-06-02 20:02:42
阅读次数:
0
What does it means? For example, if we have setup a API Gateway, REST API, GET method point to a Lambda function with no proxy intergration which retu ...
分类:
移动开发 时间:
2021-06-02 19:55:41
阅读次数:
0