gethostname.py 63 B

1234
  1. import socket
  2. hostname = socket.gethostname()
  3. print(hostname)