pikapython/examples/socket/gethostname.py
2022-08-26 16:40:12 +08:00

5 lines
63 B
Python

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