会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
天邪小鬼
博客园
首页
新随笔
联系
订阅
管理
2024年10月23日
常用的Linux awk 命令
摘要: 对文件拆分,获取指定内容 例:http:****startDate=20241023&endDate=20241023 获取startDate对应参数的内容 awk -F 'startDate=|endDate' '{print $2}' 如果需要获取符合条件的整行,将$2改为$0,$0表示获取原始
阅读全文
posted @ 2024-10-23 20:41 天邪小鬼
阅读(49)
评论(0)
推荐(0)
2024年10月21日
python安装ta-lib失败
摘要: python安装ta-lib失败,有可能会报错 Requirement already satisfied: numpy in c:\users\viruser.v-desktop\.virtualenvs\stockstudy-jtfklg50\lib\site-packages (from ta
阅读全文
posted @ 2024-10-21 21:10 天邪小鬼
阅读(1987)
评论(0)
推荐(1)
2023年4月18日
javassist 报错 ; is missing
摘要: 在通过javassist 编写的时候,主要代码如下: String code = "for (String aa : tt){....}"; 启动后报 Exception in thread "main" javassist.CannotCompileException: [source error
阅读全文
posted @ 2023-04-18 14:43 天邪小鬼
阅读(757)
评论(0)
推荐(0)
2020年10月19日
awk 输出字段使用逗号
摘要: 日志处理的时候经常会使用awk命令,如对日志进行分割输出等,输出的时候默认使用空格进行分割,如 原日志 这里是一行日志:userId:123456,mobile:1234567382 cat test.log |awk -F 'userId:' '{print $2}' 会输出:123456,mob
阅读全文
posted @ 2020-10-19 18:59 天邪小鬼
阅读(2266)
评论(0)
推荐(0)
2020年8月24日
Exception in thread "main" org.openqa.selenium.WebDriverException: Timed out waiting for driver server to start.
摘要: 在使用 webdriver 打开浏览器的时候,抛出了一个异常: Starting ChromeDriver 84.0.4147.30 (48b3e868b4cc0aa7e8149519690b6f6949e110a8-refs/branch-heads/4147@{#310}) on port 15
阅读全文
posted @ 2020-08-24 15:10 天邪小鬼
阅读(4026)
评论(0)
推荐(0)
2020年8月6日
FastJson转为jsonString时日期格式转换
摘要: 在打印日志或其他操作的时候,需要将某个对象转为jsonString,其中日期格式我们希望使用自定义的格式化后的格式,方便查看及后续处理 Test test = new Test(); test.setDate(new Date()); JSON.toJSONStringWithDateFormat(
阅读全文
posted @ 2020-08-06 20:37 天邪小鬼
阅读(3591)
评论(0)
推荐(1)
实体类接收参数时字段转换
摘要: 当我们在使用json格式传递数据的时候,别人传给我们的字段名和我们的字段名不一致,可以使用 FastJson 的 @JSONField 注解 @Data public class TestModel { @JSONField(name = "status_message") private Stri
阅读全文
posted @ 2020-08-06 20:31 天邪小鬼
阅读(936)
评论(0)
推荐(0)
公告