获取字符串中的中文字符
写法一:
///
/// 保留中文字符
///
///
///
public static string KeepChinese(string str)
{
//声明存储结果的字符串
string chineseString = "";
//将传入参数中的中文字符添加到结果字符串中
for (int i = 0; i = 0x4E00 && str[i]
关注
打赏