2024-09-29 19:32:58 发布
网友
我在Python 3中收到以下错误 有什么想法吗?在
Python 3
clientDtSocket.send(bytes(fileName,"UTF-8"),("localhost",8101)) TypeError: an integer is required (got type tuple)
尝试调用clientDtSocket.sendto而不是clientDtSocket.send:
clientDtSocket.sendto
clientDtSocket.send
clientDtSocket.sendto(bytes(fileName,"UTF-8"),("localhost",8101))
有关这些方法的详细信息:https://docs.python.org/3/library/socket.html
尝试调用
clientDtSocket.sendto
而不是clientDtSocket.send
:有关这些方法的详细信息:https://docs.python.org/3/library/socket.html
相关问题 更多 >
编程相关推荐