文章目录 8.1 可变参数默认值设为`None`8.2 对子类继承的变量要做显式定义和赋初值8.3 严禁使用注释行等形式仅使功能失效8.4 慎用`copy`和 `deepcopy`8.5 系统路径推荐使用 `pathlib.Path`8.6 使用`subprocess`模块代替`os.system` ...
分类:
编程语言 时间:
2021-07-12 17:57:57
阅读次数:
0
在命令行中使用 Python 时,它可以接收大约 20 个选项(option),语法格式如下: 1 python [-bBdEhiIOqsSuvVWx?] [-c command | -m module-name | script | - ] [args] 本文想要聊聊比较特殊的“-m”选项: 关于 ...
分类:
编程语言 时间:
2021-07-09 17:51:18
阅读次数:
0
defer是延迟执行。如果存在多个defer,运行顺序是先进后出,属于堆栈结构 f, err := os.Create(fileName) if err != nil { fmt.Println("Create file failed:", err) return nil, err } defer ...
分类:
编程语言 时间:
2021-07-05 19:08:05
阅读次数:
0
Usage: 使用sidecar模式,跟业务进程运行在同一个Pod内,检测到configMap更新后,会自动触发Hook - name: prometheus-server-configmap-reload image: 'jimmidyson/configmap-reload:v0.3.0' ar ...
分类:
其他好文 时间:
2021-07-05 19:01:41
阅读次数:
0
4. Git基本工作流程 Git工作区域 向仓库中添加文件流程 4. Git初始化及仓库创建和操作 基本信息设置 1. 设置用户名 git config --global user.name 'itcastphpgit1' 2. 设置用户名邮箱 git config --global user.em ...
分类:
其他好文 时间:
2021-07-05 19:01:11
阅读次数:
0
https://blog.melbadry9.xyz/fuzzing/nuclei-cache-poisoning id: cache-poisoning info: name: Cache Poisoning author: melbadry9 & xelkomy severity: lowreq ...
分类:
系统相关 时间:
2021-07-05 18:59:59
阅读次数:
0
接口定义 interface 关键字定义的类就叫接口 接口实例 <?php //接口定义 interface Human{ //跑步 public function run(); //跳远 public function jump(); } //接口实现 class Person implement ...
分类:
Web程序 时间:
2021-07-05 18:53:37
阅读次数:
0
QFile 0、说明 QFile是读写文件的类,这里的文件包括文本文件、二进制文件、资源文件。 通常情况下,文件读写使用QFile、QTextStream、QDataStream就够了。 file name在构造QFile时传入,或者通过setFileName()自己设置。不管什么OS,QFile中 ...
分类:
其他好文 时间:
2021-07-05 18:20:36
阅读次数:
0
sidecar 模式 共享 网络 mount utc 不共享 ipc pid user apiVersion: v1 kind: Pod metadata: name: test-sidecar namespace: default spec: hostname: test-sidecar # 主机 ...
分类:
其他好文 时间:
2021-07-05 18:17:37
阅读次数:
0
1)select下拉框控制div的隐藏与显示 script> function checkYear() { var selectValue = $("select[name='periodType']").val(); if(selectValue == 1){ $("#isPeriodYearHa ...
分类:
Web程序 时间:
2021-07-05 18:15:19
阅读次数:
0