PC의 호스트네임(hostname) 얻기
import socket
print(socket.gethostname())
PC-AA
PC의 MAC Address 얻기
import psutil
nics = psutil.net_if_addrs()
print(nics['이더넷'][0][1])
xx-xx-xx-xx-xx-xx
'Python > Python Programming' 카테고리의 다른 글
[Python] string 모듈을 이용한 임의의 패스워드 만들기 (0) | 2020.10.16 |
---|---|
[Python] Python Dictionary의 clear 메소드와 { } 차이 (0) | 2020.08.03 |
Jupyter notebook 이미지 삽입하는 방법 (0) | 2020.07.22 |
[Python] for문에 리스트 순회시 remove가 정상적으로 반영되지 않는 이유 (0) | 2020.05.18 |
[Python] random 함수 (0) | 2020.05.13 |
Jupyter notebook 간단한 사용법 (0) | 2020.03.07 |
[Python] Check the capacity of the mariadb table using pymysql (0) | 2020.02.06 |
[ Python ] 네이버_API 이용하기 (0) | 2020.01.21 |