使用gethostname()函数和gethostbyname()函数获取主机相关信息

NoSuchKey