s = input("请输入:")  # '1234324324fdsaf1fdsaf12'
count = 0
for i in s:
    if i.isdigit():
        count += 1
print(count)

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-17
  • 2021-04-14
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-26
  • 2021-04-05
  • 2022-12-23
相关资源
相似解决方案