str = 'cheng chao ran'
使用count(sub[start[end]])函数判断ch在0-4的位置中出现几次,应该如何使用
str = 'cheng chao ran' l=len(str) print(str.count('ch', 0,l))
str.count('ch',0, 4)
我写的有什么问题吗?为什么不是采纳我的?