UE中把换行符替换成逗号

博客介绍了写SQL时,当In多个数值且不想一行一个时的处理方法。可将内容复制到UE中,把换行符(^p)替换成逗号,以此解决问题。
对于写SQL的时候,要In多个数值时,不让他一行一个,可以复制到UE中把^p(换行符)替换成,即可
在上面代码基础上,添加一种特殊情况,当配置参数组合.txt中包括cell_id时,执行以下逻辑: 假设配置参数组合.txt中cell_id赋值格式为cell_id=[0,8],[1],[2,3,4] 则生成三个case,case0:cell_id=[0,8],case1:cell_id=[1],case2:cell_id=[2,3,4] 当去更改参数时,cell_id只会出现在bs_paramter_case.json中; 此时case0修改后的bs_paramter_case.json文件内容如下: { "bs_parameters": [ { "cell_id" : 0, "ue_count": 40, "ue_speed": null, "ue_direction": null, "ue_positions": null, "ue_doppler_sampling_pattern": null, "ue_freq_sampling_pattern": null }, { "cell_id" : 8, "ue_count": 40, "ue_speed": null, "ue_direction": null, "ue_positions": null, "ue_doppler_sampling_pattern": null, "ue_freq_sampling_pattern": null } ] } case1修改后的bs_paramter_case.json文件内容如下: { "bs_parameters": [ { "cell_id" : 1, "ue_count": 40, "ue_speed": null, "ue_direction": null, "ue_positions": null, "ue_doppler_sampling_pattern": null, "ue_freq_sampling_pattern": null } ] } case2修改后的bs_paramter_case.json文件内容如下: { "bs_parameters": [ { "cell_id" : 2, "ue_count": 40, "ue_speed": null, "ue_direction": null, "ue_positions": null, "ue_doppler_sampling_pattern": null, "ue_freq_sampling_pattern": null }, { "cell_id" : 3, "ue_count": 40, "ue_speed": null, "ue_direction": null, "ue_positions": null, "ue_doppler_sampling_pattern": null, "ue_freq_sampling_pattern": null }, { "cell_id" : 4, "ue_count": 40, "ue_speed": null, "ue_direction": null, "ue_positions": null, "ue_doppler_sampling_pattern": null, "ue_freq_sampling_pattern": null } ] }
11-22
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值