如何获取combinations(a, 2)的结果,只能变量一遍,非常地花费时间。

如何获取combinations(a, 2)的结果

只能变量一遍,非常地花费时间。

counter = 0
for a,b in combinations(tseries, 2):
print("Testing ({},{}), {}th".format(a,b,counter))
counter += 1
posted @ 2022-08-12 20:57  bH1pJ  阅读(13)  评论(0编辑  收藏  举报