n=str(input())
length = len(n)
s = sum(map(lambda x: int(x),n))
print('{} {}'.format(length,s))
第三章 7-11 求整数的位数及各位数字之和
猜你喜欢
转载自blog.csdn.net/qq_33749437/article/details/104887395
今日推荐
周排行