原因1:没有 static void Main(string[] args) 这样的入口点 原因2:VS中C#控制台输入根本不需要主函数,直接打就好 因为是vs2022中.NET 6.0的新科技,叫Top-level Statements