s =input("请输入: ") count =0 for i in s : if i.isdigit(): count+=1 print(count) 转载于:https://www.cnblogs.com/yuhoucaihong/p/10276686.html