如何在Windows,Linux和Mac的python中获取主板序列号 [英] How can i get the motherboard serial number in python for both windows, linux and Mac

查看:1110
本文介绍了如何在Windows,Linux和Mac的python中获取主板序列号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我正在使用python开发一个程序,但是我希望它能够从BIOS或任何其他方式检索计算机的主板序列号以进行激活,最好是在同一台计算机上的所有平台上都是一样的。



我的程序在Linux,Windows和Mac上运行良好,我正在寻找一种有效的方法来为所有人做到这一点。我听说过pywin32但我还没试过,但那只适用于Windows。我可以使用的任何模块或技巧都会非常有用。



谢谢大家

Hi all coders, am working on a program using python, but I''d like to it to be able to retrieve the computer''s Motherboard serial number either from BIOS or any other way for activation purposes that preferably would be the same across all platforms on the same computer.

My program runs well on Linux, Windows and Mac and am looking for an efficient way to do this for all. I heard of pywin32 and am yet to try it, but that would only work for Windows. Any module or trick i can use will be very helpful.

Thanks guys

推荐答案

这可能会有所帮助



http://stackoverflow.com/questions/2461141/get-a-unique-computer-id-in-python-on-windows-and-linux [ ^ ]
This might help

http://stackoverflow.com/questions/2461141/get-a-unique-computer-id-in-python-on-windows-and-linux[^]


这篇关于如何在Windows,Linux和Mac的python中获取主板序列号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆