2012-06-29 51 views

回答

3

一个潜在选项:

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

这将阻止对于〜3秒 - 存在的任何数据将在后r