企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
#### count 字符串出现的次数 ``` mystr="hello python2 hello python3" print(mystr.count('python')) #判断字符串出现的次数 print(mystr.count('python',10)) #判断字符串出现的次数,从10个到最后 print(mystr.count('python',10,15)) #判断字符串出现的次数,从10个到15个 ```