1111111111111
n=0
for a in [1,3,5,7]:
? ? for b in [1,3,5,7]:
? ? ? ? for c in [1,3,5,7]:
? ? ? ? ? ? if a!=b and b!=c and a!=c:
? ? ? ? ? ? ? ? n+=1
? ? ? ? ? ? ? ? print('{}{}{}'.format(a,b,c))
print('數(shù)字1、3、5、7能組成'+str(n)+'個(gè)各位數(shù)字不相同的三位數(shù)')
標(biāo)簽: