pikapython/test/python/socket/gethostname.py
2022-09-26 21:47:52 +08:00

5 lines
63 B
Python

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