我想找到一个字符串中的count字素,但是Python包grapheme提供了该字符串中的字符数。例如,
string='ghost'
len(string) #This gives 5
grapheme.length(string) #This should give 4 as the output for four graphemes ('gh,' 'o,' 's,' and 't') , but this again gives 5 as the output.
有人可以帮我在这里想念的吗?