Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

how to get pc name with 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''
Comment

python get computer name

import platform
platform.node()
Comment

PREVIOUS NEXT
Code Example
Python :: infinity in python 
Python :: how to permanently store data in python 
Python :: cos in python in degrees 
Python :: hello world python 
Python :: export python pandas dataframe as json file 
Python :: how to plot roc curve in python 
Python :: write dataframe to csv python 
Python :: find the closest position by time list python 
Python :: how to import image in python 
Python :: yield godot 
Python :: how to draw image in tkinter 
Python :: py get mouse coordinates 
Python :: python run 2 functions at the same time 
Python :: python opencv write text on image 
Python :: python what does yield do 
Python :: python print dict pretty 
Python :: python pil resize image 
Python :: python get ros package path 
Python :: how to change column type to string in pandas 
Python :: how to find runner up score in python 
Python :: how to refresh windows 10 with python 
Python :: read json file python utf8 
Python :: pandas datetime show only date 
Python :: how to get distinct value in a column dataframe in python 
Python :: Find a specific value in a pandas data frame based on loc 
Python :: python capture in regex 
Python :: pydrive list folders 
Python :: how to maker loops coun t in second in pytho 
Python :: python get int from string 
Python :: convert list of int to string python 
ADD CONTENT
Topic
Content
Source link
Name
9+9 =