取到十位百位上的数字

【取到十位百位上的数字】a=2345
# method 1
qian =a%10000 //1000
bai =a%1000 //100
shi =a%100 //10
ge =a%10 //1
# method 2
q =a//1000 %10
b =a//100 %10
g =a%10

    推荐阅读