1 pythonCopyimport math
2n = 13579
3x = [(n//(10**i))%10 for i in range(math.ceil(math.log(n, 10))-1, -1, -1)]
4print(x)
5
1 pythonCopyimport math
2n = 13579
3x = [(n//(10**i))%10 for i in range(math.ceil(math.log(n, 10))-1, -1, -1)]
4print(x)
5# [1, 3, 5, 7, 9]