一个用来计算字符串中元音和辅音数目的小包装
vcons的Python项目详细描述
计算字符串中元音和辅音数目的一个简单的包。在
如何安装
pip install vcons
如果安装有问题,请尝试此方法
^{pr2}$如何使用
下面的例子将对您有所帮助
from vcons import vcons
sample_string= "python"
vcons.vowels(sample_string) # returns the number of vowels in the given string
sample_string = "PACKAGE"
vcons.consonants(sample_string) #returns the number of consonants in the given string
- 项目
标签: