python3学习手册★类型转换 map(type, listxx) 将字符串str型list转为int型list strlist = ["23","15","6","44"] #元素类型为str strnn = list(map(int, strlist)) #map()将strlist的元素 都转为int型,map()返回的是map类型,需要再使用 list()转为list型 list()转为list型 tuple(map(int, strlist)) #返回tuple型 int(x) 将x输出为10进制的整型,这里的x为number int(x,base=n) 将x输出为10进制的整型,这里的x必须是n进制的 string型 如 int("A", base=16)返回值为10 chr(n) 输入0~255内的整数,返回对应ascii字符,输入可为 ProcessPool(processes=32) # 在线程中执行 work_func 并返回执行结果 start_time2 = time.time() results2 = pool.map(work_func, range(32)) pool.close() pool.join() time2 = time.time() - start_time2 print("单线程顺序执行耗时:"0 码力 | 213 页 | 3.53 MB | 1 年前3
k8s操作手册 2.3★最后重启操作系统 # reboot ★第1章、部署k8s版本<=1.23 k8s在1.23及之前版本默认是调用docker作为底层的容器运行时,从1.24版本开 始移除了dockerShim组件,不再支持docker,从而默认使用containerd作为底层 的容器运行时。 k8s 1.23及之前版本: kubelet→dockerShim→dockerd→containerd→runC 默认调用的cri-socket: --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 ip网段 --ignore-preflight-errors=Swap \ #忽略swap未关闭而导致的检查错误 --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 ip网段 --ignore-preflight-errors=Swap \ #忽略swap未关闭而导致的检查错误0 码力 | 126 页 | 4.33 MB | 1 年前3
DevOps Meetupschedule your recurring maintenance. Do define a primary purpose and measure it. Do process map. Do focus on Quality first. Do start a book club. Book List Scaling Lean & Agile Development:0 码力 | 2 页 | 246.04 KB | 6 月前3
The DevOps Handbookresponsible for ensuring meets or exceeds…requirements…from start to finish b. CREATE A VALUE STREAM MAP TO SEE THE WORK i. Gain concrete understanding of how work is performed ii. Focus investigation and0 码力 | 8 页 | 22.57 KB | 6 月前3
A Seat at the Table: IT Leadership in the Age of Agility - Part 2the plan for the future is to continue exploring the ideas originally brainstormed in the impact map. That makes it easy. This oversight approach is simple and powerful. Requiring only four short documents0 码力 | 7 页 | 387.61 KB | 6 月前3
共 5 条
- 1













