C#编程-17:字符串取第一个和最后一个字符_彭世瑜_新浪博客

175 阅读1分钟

取第一位和最后一位:

str.substring(0, 1)

str.substring(str.Length-1, 1)

\

来源:zhidao.baidu.com/question/42…