Worker.py 文件源码

python
阅读 30 收藏 0 点赞 0 评论 0

项目:bluesteel 作者: imvu 项目源码 文件源码
def get_host_info():
    """ Returns an object with unique information about the host """
    obj = {}
    # uuid.getnode() can return a random number, we need to fix it
    obj['uuid'] = str(uuid.uuid3(uuid.NAMESPACE_DNS, str(uuid.getnode())))
    obj['host_name'] = socket.gethostname()
    obj['operative_system'] = '{0}-{1}'.format(
        platform.system(),
        platform.release()
    )
    return obj
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号