想得到反转的字符串,赋值为什么不行?b和a,reverse都是字符串,应该可以赋值呀
2条回答 默认 最新
- threenewbee 2018-11-21 05:58关注
using System; using System.Linq; public class Test { public static void Main() { // your code goes here string a = "1234"; string b = string.Join("", a.Reverse()); Console.WriteLine(b); } }
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报