Linux #include <unistd.h> 使用sleep(),sleep的时间为秒,sleep(3);代表沉睡3秒 windows #include <windows.h> 使用Sleep(),Sleep的时间为毫秒,Sleep(1000);代表沉睡1秒