问:已知abc都是一位数,求当三位数abc加上cba的和为1333时,abc分别的值
def Ayue(): for a in range(10): for b in range(10): for c in range(10): if a*100+b*10+c+c*100+b*10+a == 1333: print(a,b,c) print(Ayue())
标签:10,abc,python,练习,1333,Ayue,range From: https://www.cnblogs.com/ayue6/p/17769463.html