首页
Java
登录
6mi
u
盘
搜
搜 索
Java
[codewars]1.返回给定字符串中的元音的数量(计数)。(a,e,i,o,u为元音)
[codewars]1.返回给定字符串中的元音的数量(计数)。(a,e,i,o,u为元音)
xiaoxiao
2021-02-28
84
def
getCount
(inputStr)
:
return
sum(
1
for
let
in
inputStr
if
let
in
"aeiouAEIOU"
)
getCount
(
"abracadabra"
)
转载请注明原文地址: https://www.6miu.com/read-80163.html
技术
最新回复
(
0
)