这应该是个难题,而且也是个数学题可以参考一下“数字1的个数”https://leetcode-cn.com/problems/number-of-digit-one/solution/shu-zi-1-de-ge-shu-by-leetcode-solution-zopq/