# Enter a code
s1 = 'ABC'
s2 = '123'
s3 = 'xyz'
for x in s1:
for y in s2:
for z in s3:
print(y+z+x)
所有字符的排列是不是应该有x+y+z,x+z+y,y+x+z,y+z+x,z+x+y,z+y+x
# Enter a code 改 # coding:utf-8按你代码print(x + y + z)
代码是对的