DD論壇's Archiver
論壇
›
Python
› socket
redd
發表於 2016-11-12 02:46:26
socket
取得 Host Name
import socket
print socket.gethostname()取得 IP
print socket.gethostbyname(socket.gethostname())
頁:
[1]
查看完整版本:
socket