python3学习手册+ Shi� 列选择模式,可同时选择多列 Ctrl + Alt + L 重新格式化代码,Reformat Code Ctrl + B 跳转到鼠标指定的函数定义处 Shi� + F10 运行程序 Ctrl + R 查找替换 ★设置字体颜色 File → Se�ngs → Editor → Color Scheme → Language Defaults → 选中目 标Scheme 该方法将最大 限度地收集参数信息 ④设置,获取 setatrr() 设置对象的属性 geta�r() 获取对象的属性 a = A() >>> geta�r(a, 'bar') # 获取属性 bar 值 1 >>> seta�r(a, 'bar', 5) # 设置属性 bar 值 >>> a.bar 5 next() 返回迭代器的下一个项目。 "这是第%2d号,体重%5.2f公折" % (num, wei) ) %-6.3f 表示左对齐,共6位宽,3位小数,浮点型(默认左对齐) 类 型 码 含义 类型码 含义 %c 字符 %s 字符串 %d 十进制整数 %u 无符号整数 %o 八进制数 %x 小写十六进制数 %X 大写十六进制数 %f 浮点数 %e 科学计数法,小写e %g 自动采用最短的%f或%e %F 同%f,会把inf,nan写成0 码力 | 213 页 | 3.53 MB | 1 年前3
k8s操作手册 2.3containerd.io -y # containerd --version #查看版本 containerd containerd.io 1.6.24 61f9fd88f79f081d64d6fa3bb1a0dc71ec870523 ★配置containerd服务 # mkdir -p /etc/containerd # containerd config &version.Info{Major:"1", Minor:"28", GitVersion:"v1.28.2", GitCommit:"89a4ea3e1e4ddd7f7572286090359983e0387b2f", GitTreeState:"clean", BuildDate:"2023-09-13T09:34:32Z", GoVersion:"go1.20.8", Compiler:"gc" crictl ps #查看容器,默认固定为k8s.io的命名空间 # crictl logs xxxx #查看容器日志,支持带-f参数 # crictl inspect xxx #查看镜像或容器信息 ★附、安装cri-dockerd Kubernetes自v1.24移除了对docker-shim的支持,而Docker0 码力 | 126 页 | 4.33 MB | 1 年前3
The DevOps Handbookevery day every exercise and new piece of information is evaluated and debated; more similar to R&D lab. f. REDEFINE FAILURE AND ENCOURAGE CALCULATED RISK-TAKING i. Leaders reinforce the culture through fast flow, deployability, and operations will derive NFRs. Codify these into the tests and pipeline f. BUILD REUSABLE OPERATIONS USER STORIES INTO DEVELOPMENT i. Goal – make recurring work as repeatable conferences, give talks, and then sharing back to the organization what was learned ii. Attend Meetups! f. CREATE INTERNAL CONSULTING AND COACHES TO SPREAD PRACTICES i. Capital One – SMEs hold open office0 码力 | 9 页 | 25.13 KB | 5 月前3
git 操作手册bran4合并到本地的main分支 管理员电脑上:main分支# git push -uf rmtRepo main #将本地main推送到 远程仓库 # git branch -d -r origin/bran4 #删除远程分支的映射,远程仓库上还有bran4, 本地没有remotes/origin/bran4了 # git push origin --delete bran4 ★查看日志 # gitlab-ctl tail #查看日志 # tail -f /var/log/gitlab/gitlab-rails/produc�on.log # tail -f /var/log/gitlab/gitlab-rails/produc�on_json.log ★web界面 ★管理员账号登录web界面及修改密码 0), reused 0 (delta 0), pack-reused 0 To https://gitlab.cof-lee.com/cof/pro-1.git + 2447ea5...dd101f2 main -> main (forced update) branch 'main' set up to track 'rmtRepo/main'. ★添加用户的ssh密钥 由用户登录gitlab界面,自行添加ssh0 码力 | 35 页 | 1.69 MB | 1 年前3
The DevOps Handbookwith Information Security and Compliance: e. Myth—DevOps Means Eliminating IT Operations, or “NoOps” f. Myth—DevOps is Just “Infrastructure as Code” or Automation: g. Myth—DevOps is Only for Open Source Partially done work: b. Extra processes: c. Extra features: d. Task switching: e. Waiting: f. Motion: g. Defects: h. Nonstandard or manual work:i. Heroics: d. The Second Way: The Principles your condition now? d. What is your next target condition? e. What obstacle are you working on now? f. What is your next step? g. What is your expected outcome? h. When can we check? 6. PART II—WHERE0 码力 | 8 页 | 22.57 KB | 5 月前3
The DevOps Handbookwith overlays of production changes iii. Tools – StatsD, JMX, codahale, New Relic, Prometheus, etc. f. CREATE SELF-SERVICE ACCESS TO TELEMETRY AND INFORMATION RADIATORS i. Spread the information – anyone deliberate change scheduling, gather representatives, not authorize changes, but to schedule and sequence. f. ENABLE PEER REVIEW OF CHANGES i. Require peer reviews, not external board approval ii. Peer review0 码力 | 8 页 | 24.02 KB | 5 月前3
The DevOps Handbooktests fail 3. Developers working in small batches on trunk rather than long-lived feature branches f. BUILD A FAST AND RELIABLE AUTOMATED VALIDATION TEST SUITE i. Slow and periodic feedback kills – larger Enable fast flow through common promotion process anyone can run without manual steps and handoffs f. INTEGRATE CODE DEPLOYMENT INTO THE DEPLOYMENT PIPELINE i. Ensures packages created by CI are suitable0 码力 | 8 页 | 23.08 KB | 5 月前3
Pomodoro TechniqueUsing The Pomodoro Technique, Daniel Hinojosa, https://docs.google.com/presentation/d/1ufjcILARuowbv3Y9r-FP9-x3kmlIzq7bvOJBxRVh3-w/ present#slide=id.i0 [3] Flow: The Psychology of Optimal Experience, Mihaly0 码力 | 3 页 | 289.16 KB | 5 月前3
共 8 条
- 1













