python字符串中字母出现的次数

如题所述

# 2021-05-11 Luke
string_ = "like love link look"
print("字母l出现的次数是:" + str(string_.count('l')))
温馨提示:答案为网友推荐,仅供参考
相似回答