Python send integer with socket. Can't convert to byte

后端 未结 0 1887
悲哀的现实
悲哀的现实 2020-12-09 23:05

I want to send integer that converted to string as byte with socket

My code

x = 0

while True:
    x += 1
    client.send(bytes(str(x)))
    time.sleep         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题