上一页 1 2 3 4 5 6 ··· 12 下一页
摘要: 参考:https://blog.csdn.net/anqixiang/article/details/117903529 awk:能够对文本的每一行都进行复杂的格式处理,它支持关系运算符、算法运算符, 正则表达式, if ,while,for等逻辑,是一种处理文本的语言。 基本格式: awk '{p 阅读全文
posted @ 2023-11-22 15:39 ho966 阅读(19) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/python3 # -*- coding: UTF-8 -*- import datetime import time #时间戳 ticks=time.time() print(ticks) #结构体时间{tm_year...} localtime=time.localtime 阅读全文
posted @ 2023-11-21 23:31 ho966 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 字典,类似json #!/usr/bin/python3 # -*- coding: UTF-8 -*- import json data={'name':'abc', 'age':{'zhousui':7, 'xusui':8}, 'class': 'first'} print(data) str 阅读全文
posted @ 2023-11-21 23:13 ho966 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 集合即有序set #!/usr/bin/python3 # -*- coding: UTF-8 -*- data=set() data.add("bcd") data.add("abc") # 添加元素 print(data) data.discard("ab") data.discard("abc 阅读全文
posted @ 2023-11-21 23:04 ho966 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 1、 yum install epel-release 2、 python3 执行 yum install python3-pip / python2 执行 yum install python-pip 3、 查看版本pip3 --version 4、 安装成功后, 如果想安装requests, 就 阅读全文
posted @ 2023-11-21 22:21 ho966 阅读(219) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/python3 # -*- coding: UTF-8 -*- str = 'I like U' list = str.split(" ") print(list) list.append("cute") #添加 print(list) del list[2] #删除 prin 阅读全文
posted @ 2023-11-20 23:59 ho966 阅读(8) 评论(0) 推荐(0) 编辑
摘要: 参考 https://zhuanlan.zhihu.com/p/410731610 方法1: #!/usr/bin/python3 # -*- coding: UTF-8 -*- from multiprocessing import Process import time import os de 阅读全文
posted @ 2023-11-17 20:51 ho966 阅读(6) 评论(0) 推荐(0) 编辑
摘要: 1、下载源码rakafka源码 https://github.com/confluentinc/librdkafka 2、安装openssl,可以参考 https://www.cnblogs.com/ho966/p/15916018.html 3、如果要支持gssapi, 需要依赖cyrus-sas 阅读全文
posted @ 2023-09-08 19:32 ho966 阅读(137) 评论(0) 推荐(0) 编辑
摘要: mallopt函数可以设置malloc内部的一些参数大小 int mallopt(int param,int value) param: M_MXFAST -- fastbin范围的最大值,value值在0~20*sizeof(void*)之间 M_TRIM_THRESHOLD – main_are 阅读全文
posted @ 2023-09-01 14:03 ho966 阅读(209) 评论(0) 推荐(0) 编辑
摘要: 问题描述: kafka服务处在内网, 客户端在外网, 客户端通过网闸端口映射连接内网的kafka, 这种情况下实际无法连接上kafka。 客户端第一次通过外网ip端口连接上kafka,会查询broker信息,kafka会返回内网的ip信息, 这样客户端在第二次重新连接broker时就会连接失败。 修 阅读全文
posted @ 2023-08-31 17:09 ho966 阅读(305) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 12 下一页