str = 'cheng chao ran'
使用count(sub[start[end]])函数判断ch在0-4的位置中出现几次,应该如何使用
收起
str = 'cheng chao ran' l=len(str) print(str.count('ch', 0,l))
报告相同问题?