python3学习手册= tkinter.Tk() window.title("pillow") # 创建一个 Tkinter 界面 canvas = tkinter.Canvas(window, width=640, height=480) canvas.pack() cap = cv2.VideoCapture(0) # 打开摄像头 ret, frame = cap.read() 图像 img = Image.fromarray(img) imgtk = ImageTk.PhotoImage(image=img) # 创建 Tkinter 图像 canvas.create_image(0, 0, anchor=tkinter.NW, image=imgtk) # 在画布上绘制图像 window.mainloop() # 运行主循环 显示效果: ★Canvas画布 画布组件用于在应用程序中绘制图形和文本,画布支持多种绘图方 法,如绘制直线、矩形、椭圆和文本等。 import tkinter window = tkinter.Tk() # 创建窗口对象 window.geometry("480x320") # 设置窗口大小,宽x高 canvas = tkinter.Canvas(window, width=4800 码力 | 213 页 | 3.53 MB | 1 年前3
k8s操作手册 2.3kubeadm init --kubernetes- version=v1.19.4 \ --apiserver-adver�se- address=10.99.1.51 \ # api server地址 --pod-network-cidr=10.244.0.0/16 \ # pod容器网段 --service-cidr=10.7.0.0/16 \ # service网段,即cluster kubeadm init --kubernetes- version=v1.28.2 \ --apiserver-adver�se- address=10.99.1.51 \ # api server地址 --pod-network-cidr=10.244.0.0/16 \ # pod容器网段 --service-cidr=10.7.0.0/16 \ # service网段,即cluster 高可用集群拓扑图: ★先配置HA高可用的反向代理 本例中vip为10.99.1.54(三台master ip为10.99.1.51~53)使用haproxy做反向代理 frontend k8s_api_tcp_6443 bind *:6443 mode tcp default_backend my_k8s_cluster_6443 backend my_k8s_cluster_64430 码力 | 126 页 | 4.33 MB | 1 年前3
The DevOps Handbookthat could become an error and 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 Use telemetry to measure outcomes iv. Etsy open-sourced their experimentation framework – Feature API e. INTEGRATE A/B TESTING INTO OUR FEATURE PLANNING i. Product owners should consider each feature0 码力 | 8 页 | 24.02 KB | 5 月前3
The DevOps Handbooksuite becomes the living documentation of the system specification and represent working examples of API use e. DESIGN FOR OPERATIONS THROUGH CODIFIED NON-FUNCTIONAL REQUIREMENTS i. Designing for fast changes through pair programming or code review 3. Instrument the repository to detect suspicious code (API calls from certain types of test code) 4. Ensure every CI process is in an isolated container 50 码力 | 9 页 | 25.13 KB | 5 月前3
The DevOps HandbookCoined by Martin Fowler in 2004 ii. Strangler Application 1. Put existing functionality behind an API 2. New functionality implemented in new services with new architecture 3. Make calls to old system0 码力 | 8 页 | 23.08 KB | 5 月前3
git 操作手册然后普通用户就可在自己的项目里配置“WebHook”功能了 Se�ngs→Webhooks→Add new webhook Webhook URL: h�p://10.99.1.241:32433/api/v2/job_templates/42/gitlab/ Webhook Key: vHRMIUlRQql9khxfr23sVlaeeMaLA7pZEmbKmmECeFL3bgF7kP Trigger可选择“Push0 码力 | 35 页 | 1.69 MB | 1 年前3
共 6 条
- 1













