再说,逻辑判断应该用==。 import ***; class Program { static void Main(string[] args) { for(int i=1;i { if(i!=4) { System.out.println("hello "+i+"回"); } } } }