我有下面的清单
list = [0,0,0,0,2,1,4,1,432,431,1,4,43,423,,45,54534,0,665,765,5687,89870,890,98089,6,0,1,5,7,3,6,7,8,3,4,4,7,543,6554,765,768,87234,765876,0,897,987,0,4,7,4,6,8,0,0,0,0]
从上面的列表中,我想根据高密度(>;10)值提取子列表。 如果在较高的数之间有一个或两个零,它可以包含在较高的数集中
我想打印
op1 = [2,1,4,1,432,431,1,4,43,423,,45,54534,0,665,765,5687,89870,890,98089,6,0]
op2 = [7,543,6554,765,768,87234,765876,0,897,987,0,4,7,4,6,8]
我想从上面的列表中提取更多的数字集。。你知道吗
高\u数字>;10 低数字<;10
main_list= [<few_high_numbers_1>,<few_low_numbers_1>,<few_high_numbers_2><few_low_numbers_2><few_high_numbers_3><few_low_numbers_3>]..
我想从中提取列表
list1 = <few_high_no_1>
list2= <few_high_no_2>
list3 = <few_high_no_3>
等等等等
如果我不清楚就告诉我。你知道吗
谢谢你
这里有一些工作代码,据说注释已经足够多了。你知道吗
现在试试
printStreaks(sample)
,也试试其他列表或阈值。你知道吗请注意,您的第一个列表包含一个额外的逗号,用于中断解析。你知道吗
相关问题 更多 >
编程相关推荐