int inputStrLength = 10000;
Console.SetIn(new StreamReader(Console.OpenStandardInput(), Encoding.UTF8, false, inputStrLength));
string strTxt = Console.ReadLine();
C# 控制台输入超过255个字符的方法
最新推荐文章于 2024-04-02 21:30:00 发布
int inputStrLength = 10000;
Console.SetIn(new StreamReader(Console.OpenStandardInput(), Encoding.UTF8, false, inputStrLength));
string strTxt = Console.ReadLine();