Skip to main content

upper_prob

Function upper_prob 

Source
pub fn upper_prob(input: &str) -> f64
Expand description

计算字符串中大写字母占所有字母(大小写)的比例。

忽略非字母字符。如果字符串没有英文字母,返回 0.0。