import console; for(i=1;10;1){ // 原地更新当前行,如果光标在行首并且不是第一行则更新上一行 console.updateLine("测试 %d0%% %s",i,string.random(math.random(1,60))) // edit,richedit 控件也提供类似的函数 updateLastLine() sleep(300) } console.pause();