马儿666888
马儿666888
全部文章
分类
题解(2)
归档
标签
去牛客网
登录
/
注册
马儿666888的博客
全部文章
(共2篇)
统计字符在字符串中的个数
def c_count(): str1 = input().lower() str2 = input().lower() count = str1.count(str2) return count print(c_count())
2020-02-19
14
1180
大概写的,大家看看还有需要改进的吗
def get_len(): input_str = input() word = input_str.strip().split(' ')[-1] if len(word)>5000 or len(word) == 0: return "重新输入" re...
2020-02-19
26
2694