取字串长度:
如: string str="中国";
int Len = str.Length ; //Len是自定义变量, str是求测的字串的变量名
如: string str="中国";
int Len = str.Length ; //Len是自定义变量, str是求测的字串的变量名
博客给出了取字符串长度的示例,定义字符串变量 str 为“中国”,通过 str.Length 来获取字符串长度,并将结果赋值给自定义变量 Len。

被折叠的 条评论
为什么被折叠?