这是找出给定数字可能排列的代码...,是否有可能减少代码
from itertools import permutations
lst=[int(x) for x in input()] #taking input and split
perm = list(permutations(lst))
for i in range(0,len(perm)):
perm[i]=int("".join(map(str,perm[i])))#join them and covert to int
print(perm)
import random
s = input()
perm = int(''.join(random.sample(s,len(s))))