4位数字排

from itertools import permutations
s = list(permutations('1234'))
a = [list(i) for i in s]
s2 = ["".join(i) for i in a]
print(s2)
print(len(s2))

猜你喜欢

转载自www.cnblogs.com/xaiobong/p/9912472.html