V
V
Viktor Paperno2013-12-18 22:38:50
Python
Viktor Paperno, 2013-12-18 22:38:50

How to pass str with socket .send method in Python 3.3?

I'm trying to send a line to the server, PyCharm gives an error, here's the picture:

aBM-30_IPUA.jpg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
maxaon, 2013-12-18
@AviPaperno

You are trying to send a string, but you need a set of bytes. Try to convert with
And learn to google .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question