def fun(num): global k if num // 10 == 0: print('位数是:%s' % k) else: num1 = num // 10 k += 1 fun(num1)if __name__ == '__main__': while True: global k k = 1 a = input('输入一个数:') fun(int(a))我用的是...