任务一:统计字符串中出现指定字符的次数(忽略大小写) # 任务一:统计字符串中出现指定字符的次数(忽略大小写) def get_count(s,ch): count=0 for item in s: if ch.upper()==item or ch.lower()==item: count+=1 return count if __name__ == '__main__': s='hellopython,Hellojava,Hellodjango' print(s) ch