计算用户输入的内容中有几个整数。如content= input("请输入内容: ") #如 fhdal1234slfh98769fjdla

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

 

posted on 2019-01-16 14:05  没有岁月可回头  阅读(343)  评论(0编辑  收藏  举报