📅  最后修改于: 2022-03-11 14:46:09.793000             🧑  作者: Mango
number_length = lambda s: len(str(s)) #number length without recursion
#number length with recursion
numlen = 1
def num_len(s):
if s > 9:
numlen += 1
else:
s = numlen
numlen = 0
return s
return num_len(s//10)