code
from itertools import permutations result=[int("".join(i)) for i in list(permutations(["1","2","3","4"],3))] print(len(result),result)
python 排列组合
原文:https://www.cnblogs.com/sea-stream/p/14502358.html