下载编号:86214
int lig=99, dis=99;while(1){
dis=distsensor();lig=lightsensor();if(dis<10){gpp_say(0,"谁挡我呀?我换个方向吧!");back(5,20);turn_left(65);forward(5,30);}
else if(lig<400){gpp_say(0,"这里好黑呀!赶快退回去!");back(8,20);turn_right(53);wait(25);}else{forward(5,10);}
}void main(){}