C#字符串取第一个和最后一个字符

取第一位和最后一位:
str.substring(0, 1)
str.substring(str.Length-1, 1)

你可能感兴趣的:(C#字符串取第一个和最后一个字符)