统计指定数字和

n=str(input())
p=str(input())
print(n.count(p)*int(p))
原文地址:https://www.cnblogs.com/Deranuid/p/13172805.html