编程技术 · 2020 年 01 月 09 日 0

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

C#编程-17:字符串取第一个和最后一个字符

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