摘要: 迭代器:for循环实际是对容器使用iter(),iter()实际会调用该对象的__iter__()方法,返回一个定义了__next__()方法的迭代器对象,该迭代器可以逐一访问容器中的元素,使用next()内置函数调用该对象的__next__()方法,next()越界触发StopIteration异 阅读全文
posted @ 2024-05-12 17:01 flag_HW 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 再次学习类_1 阅读全文
posted @ 2024-05-11 22:22 flag_HW 阅读(2) 评论(0) 推荐(0) 编辑
摘要: import asyncio #运行器 async def hello_async(delay, words): await asyncio.sleep(delay) print(words) #协程与任务 async def test_async(): #等待第一个协程hello_async执行完 阅读全文
posted @ 2024-04-03 21:11 flag_HW 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 多进程 多线程 启动并行任务 阅读全文
posted @ 2024-03-10 17:59 flag_HW 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 常用规则示例 修改chain默认策略 #filter表在INPUT chain默认策略为ACCEPT[root@iptables_host02 ~]# iptables -nvL INPUTChain INPUT (policy ACCEPT 0 packets, 0 bytes)#将filter表 阅读全文
posted @ 2021-10-31 15:23 flag_HW 阅读(864) 评论(0) 推荐(0) 编辑
摘要: iptables 基础语法 阅读全文
posted @ 2021-10-25 23:27 flag_HW 阅读(1716) 评论(0) 推荐(0) 编辑
摘要: k8s namespace 阅读全文
posted @ 2021-10-05 21:56 flag_HW 阅读(210) 评论(0) 推荐(0) 编辑
摘要: k8s deployment 阅读全文
posted @ 2021-10-05 21:17 flag_HW 阅读(606) 评论(0) 推荐(0) 编辑
摘要: k8s service secret configmap 阅读全文
posted @ 2021-10-05 17:05 flag_HW 阅读(371) 评论(0) 推荐(0) 编辑
摘要: k8s PV PVC 阅读全文
posted @ 2021-10-05 16:13 flag_HW 阅读(431) 评论(0) 推荐(0) 编辑