Comment imprimer le nom d'hôte dans Python
# Use socket and its gethostname() functionality.
# This will get the hostname of the computer where the Python interpreter is running:
import socket
print(socket.gethostname())
Stupid Salmon