62,046
社区成员
发帖
与我相关
我的任务
分享
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
namespace JustTry
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine(Select("1", "2"));
Console.WriteLine(Select("1", "2", "3"));
Console.WriteLine(Select("1", "2", "3", "4"));
Console.ReadLine();
}
public static string Select(params string[] str)
{
StringBuilder sb = new StringBuilder();
for (int i = 0; i < str.Length; i++)
{
sb.Append(str[i]);
}
return sb.ToString();
}
}
}