🌈 搜索
📅  最后修改于: 2022-03-11 14:58:11.845000             🧑  作者: Mango
var myArray = ["a", "b", "a"] print(myArray.count("a")) # outputs 2