🌈 搜索
📅  最后修改于: 2022-03-11 14:45:54.135000             🧑  作者: Mango
a = '128532012' print(a.count('0')) #Prints: 1 print(a.count('12')) #Prints: 2