DEV Community

loading...

It's possible changed hosts of linux with Python?

mayronceccon profile image Mayron Ceccon ・1 min read

Discussion (1)

pic
Editor guide
Collapse
rhymes profile image
rhymes

You can try using sethostname in the socket module: docs.python.org/3/library/socket.html