我只想接收可用的数据。就像Serial.available()在Arduino中一样。我想要这样的代码:
Serial.available()
if there is data: receive and print else: print 'No data'
事实上,我不希望程序仅仅因为接收数据而停止。
python sockets tcp
python ×1
sockets ×1
tcp ×1