D
Dio
#!/usr/bin/env python2
from sys import stdin
from select import select
while 1:
(rr, wr, er) = select([stdin], [], [])
for fd in rr:
print fd
program block in the first select(), after I type something and "enter
", it never block in select() again,why?
from sys import stdin
from select import select
while 1:
(rr, wr, er) = select([stdin], [], [])
for fd in rr:
print fd
program block in the first select(), after I type something and "enter
", it never block in select() again,why?