Replace Pioneer来统计5位数字其中4位数字组合次数
来源:学生作业帮 编辑:作业帮 分类:综合作业 时间:2024/05/17 16:19:44
Replace Pioneer来统计5位数字其中4位数字组合次数
经了解,提问者举例如下:
04 08 12 14 15
04 05 06 08 09
02 05 06 11 13
02 04 06 13 14
05 06 07 12 14
01 02 04 07 14
01 02 07 14 15
01 02 08 13 14
01 02 12 13 14
01 04 08 12 14
这些5个数字数组,要统计出其中各种4个数字的组合出现的次数
这需要用Replace Pioneer写一些代码,步骤如下:
1. ctrl-o打开文件
2. ctrl-h打开replace窗口
* replace unit选择Line
* 点击Advanced页,在run following at the beginning of replace输入clear_values_all()
* 在run following for each matched unit输入
if ($match[1]=~/\d/) {
set_value($match[1].$match[2].$match[3].$match[4],get_value($match[1].$match[2].$match[3].$match[4])+1);
set_value($match[1].$match[2].$match[3].$match[5],get_value($match[1].$match[2].$match[3].$match[5])+1);
set_value($match[1].$match[2].$match[4].$match[5],get_value($match[1].$match[2].$match[4].$match[5])+1);
set_value($match[1].$match[3].$match[4].$match[5],get_value($match[1].$match[3].$match[4].$match[5])+1);
set_value($match[2].$match[3].$match[4].$match[5],get_value($match[2].$match[3].$match[4].$match[5])+1);
}
* 在insert end text输入get_values_all()
3. 点击replace,完成.
4. ctrl-s存盘.
04 08 12 14 15
04 05 06 08 09
02 05 06 11 13
02 04 06 13 14
05 06 07 12 14
01 02 04 07 14
01 02 07 14 15
01 02 08 13 14
01 02 12 13 14
01 04 08 12 14
这些5个数字数组,要统计出其中各种4个数字的组合出现的次数
这需要用Replace Pioneer写一些代码,步骤如下:
1. ctrl-o打开文件
2. ctrl-h打开replace窗口
* replace unit选择Line
* 点击Advanced页,在run following at the beginning of replace输入clear_values_all()
* 在run following for each matched unit输入
if ($match[1]=~/\d/) {
set_value($match[1].$match[2].$match[3].$match[4],get_value($match[1].$match[2].$match[3].$match[4])+1);
set_value($match[1].$match[2].$match[3].$match[5],get_value($match[1].$match[2].$match[3].$match[5])+1);
set_value($match[1].$match[2].$match[4].$match[5],get_value($match[1].$match[2].$match[4].$match[5])+1);
set_value($match[1].$match[3].$match[4].$match[5],get_value($match[1].$match[3].$match[4].$match[5])+1);
set_value($match[2].$match[3].$match[4].$match[5],get_value($match[2].$match[3].$match[4].$match[5])+1);
}
* 在insert end text输入get_values_all()
3. 点击replace,完成.
4. ctrl-s存盘.
0-9的数字组合,组合成3位、4位、5位、6位分别能有多少组数字(任意组合,不能重复)
Excel中实现2位数字定位组合,统计组合结果
算数列组合的公式4位数字xxxx有多少种组合5位6位求算这个的公式
5位数字密码可以组合多少组?
123456组成的六位数字组合
0123456789这10位数字中任意4位数字组合,可以组合几种0也可以放在第一位
车牌号几位数字的好啊5位 4位 3位 几位的好啊
4位以上 到8位的密码 包括数字 符号 大小写字母 一工有多少组合
excel 统计次数,5列为一组,要统计出现其中三个数字的次数(如统计 1 5 6 在这几组中出现的次数)
1至9的其中四位数字的所有组合
1-33位数,排除连续6位,5位,4位排列,还有多少组6个数字一组的组合
Replace Pioneer把科学计数法数字转成普通的数字,如