python获取电脑唯一标识符 效果: 54AxxxA8-3xx7-4xx1-Bxx7-xxx201D81xxx 使用库 subprocess 代码如下: # !/usr/bin/python # -*- coding: utf-8 -*- """ @contact: 微信 1257309054 @file: 获取电脑硬件信息.py @time: 2022/11/5 11:41 @author: LDC """ import subprocess def get_machine_id(): # 获取电脑唯一标识符 current_machine_id