لطفا راهنمایی کنید هیچ کدوم (bool, int, str, float) رو پشتیبانی نمی کنه:
#!/usr/bin/python3.4
import socket
s = socket.socket()
host, port = socket.gethostname(), 12346
s.connect((host, port))
s.send('hello world')
اینم ارور:
C:\Python34\python.exe "C:/Users/mohammad/server and client/client.py"
Traceback (most recent call last):
File "C:/Users/mohammad/server and client/client.py", line 14, in <module>
s.send('hello world')
TypeError: 'str' does not support the buffer interface
Process finished with exit code 1
پاسخ ها