这个for循环怎么破??想半天想不出
from itertools import combinations
a =
def aa():
return list(combinations(a,6))
ss = aa()
for i in ss:
print(i)
这段代码会打印7个元组。。。插入什么代码可以让他们。。每打印一次加一个空行。。每打印5次加一行"==============="
脑子不够用了!!
from itertools import combinations
a =
def aa():
return list(combinations(a,6))
ss = aa()
count = 0
for i in ss:
count += 1
print(i)
print()
if count == 5:
print('===============')
count = 0
蹲
页:
[1]