编辑器
import select import sys # Wait for stdin to be readable ready = select.select([sys.stdin], [], [], 5.0) if ready[0]: print('Input available') else: print('Timeout')
Input available