import sys, socket hostname = socket.gethostname() # Try to get the fully-qualified name. print 'Fully-qualified name:', socket.getfqdn(hostname)
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/8219.html
import sys, socket hostname = socket.gethostname() # Try to get the fully-qualified name. print 'Fully-qualified name:', socket.getfqdn(hostname)
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/8219.html