鱼C论坛's Archiver
论坛
›
Python交流
› Python:每日一题 59
19971023
发表于 2020-7-14 15:45:26
1
nononoyes
发表于 2020-10-8 19:24:38
import itertools
str = 'aabb'
lst = list(str)
result = []
for i in itertools.permutations(lst,4):
result.append(''.join(list(i)))
print(set(result))
页:
1
[2]
查看完整版本:
Python:每日一题 59