KID1412__ 2020-09-09 17:13 采纳率: 25%
浏览 2489
已采纳

Expected type 'bytes', got 'str' instead 这个是报错, 我要怎么改?

connectionSocket.send('\n404 File Not Found\n')

  • 写回答

1条回答 默认 最新

  • threenewbee 2020-09-09 17:33
    关注

    connectionSocket.send(b'\n404 File Not Found\n')
    加上一个b看看

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?