python socket发送字符串问题

2025-05-08 09:13:34
推荐回答(1个)
回答1:

python3中binary string 和 string不能合在一起
s.send("%s\r\n" %data)