python3学习手册\033[和m之间的数字为显示效果及颜色的 数字代码 数 字 代 码 效果 颜色 前景色代 码 背景色代 码 0 默 认 , 灰 白 黑 30 40 1 粗体 红 31 41 4 下划线 绿 32 42 5 闪烁 黄 33 43 7 反白显示 蓝 34 44 紫 35 45 青 36 46 灰 白 , 同 0 默认 37 47 效果+颜色用;分号隔开 print( To Do # range(1,9) #从1开始,1到8 # range(1,9,2) #从1开始,步长为2,即1,3,5,7 ②while循环 while 判断 : 循环体 con�nue #con�nue跳过剩下的循环体,进入下一轮loop,break 跳出整个循环 也可用 import math ; math.trunc(xx/yy) 来取整,(xx/yy)可为float,结果 也是整数商 ★小数取整 ①内置函数round()为四舍五入,n.5则靠偶数取整 ROUND_HALF_EVEN round(2.5) #返回2 round(3.5) #返回4 ②math.ceil() 进一法 import0 码力 | 213 页 | 3.53 MB | 1 年前3
git 操作手册rmtRepo main:bran5 #将远程的main分支下载到本地并基于此创 建bran5分支 # git checkout bran5 #切换到bran5分支 # git branch -a * bran5 remotes/rmtRepo/main 或者: # git checkout -b bran5 rmtRepo/main #成员再做增删改工作,过程省略 # git push -u rmtRepo bran5 #将本地代码库的当前分支(bran3)推送到远 程的代码库的bran5分支 # git branch -a * bran5 remotes/rmtRepo/bran5 #可见远程仓库已有bran5分支了 remotes/rmtRepo/main #如果管理员 merge remotes/origin/main main #合并同步远程代码库的main分支到 本地的main分支 ★其他克隆操作 # git clone -b bran5 --depth=1 h�p://gitlab.cof-lee.com/cof/pro-1.git #-b克 隆指定版本,可以是branch,也可是tag,--depth=1表示史克隆最新一层提交,0 码力 | 35 页 | 1.69 MB | 1 年前3
k8s操作手册 2.3k8s.io/v1beta1 kind: KubeletConfigura�on cgroupDriver: systemd failSwapOn: False #保存,(修改蓝色字体的参数值及新增最后5行) # kubeadm config images list --config /etc/kubeadm-init.yaml #查看需要的镜 像 cof-lee.com k8s.io/v1beta1 kind: KubeletConfigura�on cgroupDriver: systemd failSwapOn: False #保存,(修改蓝色字体的参数值及新增最后5行) # kubeadm config images list --config /etc/kubeadm-init.yaml #查看需要的镜 像 cof-lee.com 1 4h25m �gera-operator �gera-operator 1/1 1 1 5h5m ★指定底层网络接口(node ip) k8s calico组件daemonset设置: - name: IP_AUTODETECTION_METHOD valuse: "interface=ens3"0 码力 | 126 页 | 4.33 MB | 1 年前3
The DevOps HandbookThe DevOps Handbook – Parts 5 & 6 – Part 5: The Third Way – The Technical Practices of Continual Learning and Experimentation; 1. Introduction a. Goal – practices to enable learning as quickly, frequently humans can decide to take action or not, and that the judgment of those decisions lies in hindsight 5. Propose countermeasures to prevent a similar accident from happening in the future and ensure these identified the problem 3. People who responded to the problem 4. People who diagnosed the problem 5. People who were affected by the problem 6. Anyone else who is interested in attending the meeting0 码力 | 9 页 | 25.13 KB | 5 月前3
The DevOps Handbookdependencies 2. Environment scripts & creation tools 3. DB scripts and reference data 4. Containers 5. Automated tests 6. Project artifacts – documentation, procedures, etc. 7. Application configuration the lifecycle. Downward spiral of pain b. HP LaserJet Firmware –i. Before CI: 2 releases per year. 5% of effort supporting new features, 20% on detailed planning, 25% on porting code amongst branches higher throughput and better stability, and even higher job satisfaction and lower rates of burnout. 5. Ch. 12 Automate and Enable Low-Risk Releases a. Just like we reduce batch size and increase frequency0 码力 | 8 页 | 23.08 KB | 5 月前3
The DevOps Handbookand will likely trigger an alert 4. Error – error conditions such as API failures, internal issues 5. Fatal – forces a termination iv. Examples of potentially significant events (Gartner’s GTP Security data access 3. System and application changes, especially privileged changes 4. Data changes (CRUD) 5. Invalid input, possible malicious injections or threats 6. Resources (RAM, disk, CPU, bandwidth, and has a service handback mechanism to the development team when production services become fragile 5. Ch. 17 – Integrate Hypothesis-Driven Development and A/B Testing into Our Daily Work a. INTRODUCTION0 码力 | 8 页 | 24.02 KB | 5 月前3
DoD CIO Enterprise DevSecOps Reference Design - Summaryalso be used to send notifications when there is anomalous behavior. 4. Vulnerability Management 5. A service mesh proxy to connect to the service mesh 6. Zero Trust down to the container level. Program-specific artifact repository 4. Runtime Behavior Analysis Artificial Intelligence (AI) service 5. DCAR for the hardened containers 6. Common Vulnerabilities and Exposures (CVE)Service / host-based0 码力 | 8 页 | 3.38 MB | 5 月前3
The DevOps Handbookiv. Mean time to restore service (168 times faster) 4. An Introduction to The DevOps Handbook xxi 5. PART I—THE THREE WAYS 1 a. Introduction i. THE LEAN MOVEMENT 1. manufacturing lead time required step? g. What is your expected outcome? h. When can we check? 6. PART II—WHERE TO START 47 7. Ch. 5 Selecting Which Value Stream to Start With 51 a. GREENFIELD vs BROWNFIELD SERVICES i. DevOps is not0 码力 | 8 页 | 22.57 KB | 5 月前3
Velocity Conference 2015ublic/schedule/proceedings [2] YouTube Playlist: https://www.youtube.com/playlist?list=PL055Epbe6d5Y86GSg3nhUH3o_v62FGpCI0 码力 | 4 页 | 176.79 KB | 5 月前3
Government Excerpta national leader in sustainable energy and a clean environment; 4. Healthy and safe communities; 5. Efficient, effective, and accountable government. These are not revolutionary goals. This is what people0 码力 | 3 页 | 414.99 KB | 5 月前3
共 12 条
- 1
- 2













