Comment obtenir le nom du PC avec Python
# credit to the Stack Overflow user in the source link
import platform
platform.node()
>>>'DARK-TOWER'
# or equivalently
import socket
socket.gethostname()
>>> 'DARK-TOWER''
wolf-like_hunter