a=input()
b=len(a)
c=0
for i in range(b):
if a[i].isdigit():
c+=1
print(c)
python 1065: 统计数字字符的个数
最新推荐文章于 2024-06-14 21:25:09 发布
a=input()
b=len(a)
c=0
for i in range(b):
if a[i].isdigit():
c+=1
print(c)