pikapython/examples/socket/gethostname.py

5 lines
63 B
Python
Raw Normal View History

import socket
hostname = socket.gethostname()
print(hostname)