2012-06-29 67 views

回答

3

一個潛在選項:

import select, sys 
r, w, x = select.select([sys.stdin], [], [], 3) 

這將阻止對於〜3秒 - 存在的任何數據將在後r