题解 | #按照格式输入并交换输出#
按照格式输入并交换输出
https://www.nowcoder.com/practice/95eb723a3e854376a7eb6d116cc7d875
public class Program { public static void Main() { string[] s = System.Console.ReadLine().Split(","); s[0] = s[0].Replace("a=",""); s[1] = s[1].Replace("b=",""); System.Console.WriteLine($"a={s[1]},b={s[0]}"); } }