什么是一种简单(实现)的方式,通过Python脚本来检查我是否在Windows Vista或Windows Server 2008上?Windows Server 2008或Vista?
platform.uname()
给出了两个版本的相同结果。
什么是一种简单(实现)的方式,通过Python脚本来检查我是否在Windows Vista或Windows Server 2008上?Windows Server 2008或Vista?
platform.uname()
给出了两个版本的相同结果。
看到前面的问题(和答案)获得:[HTTP ://stackoverflow.com/questions/196930/how-to-check-if-os-is-vista-in-python](http://stackoverflow.com/questions/196930/how-to-check-if- os-is-vista-in-python) – 2009-02-16 14:00:31