已采纳 程安琪 资深守护 定义吗m,n,s=0; 输入n; m=2*n-1; for循环i从1到n{ for循环j从0到s{ 输出空格; } for循环j从1到m{ 输出星号; } m-=2; s++; 输出换行; }