OperatingSystem myOS = Environment.OSVersion;//创建对象 转载于:https://www.cnblogs.com/wjshan0808/p/4233996.html