{"id":169426,"date":"2020-10-08T12:55:21","date_gmt":"2020-10-08T04:55:21","guid":{"rendered":"http:\/\/4563.org\/?p=169426"},"modified":"2020-10-08T12:55:21","modified_gmt":"2020-10-08T04:55:21","slug":"%e5%a4%a7%e4%bd%ac%e4%bb%ac%e5%a5%bd%ef%bc%8c%e9%97%ae%e4%b8%8b-python-%e8%8e%b7%e5%8f%96%e7%94%b5%e8%84%91%e7%a1%ac%e4%bb%b6%e4%bf%a1%e6%81%af%ef%bc%8c%e7%b1%bb%e4%bc%bc%e9%b2%81%e5%a4%a7%e5%b8%88","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=169426","title":{"rendered":"\u5927\u4f6c\u4eec\u597d\uff0c\u95ee\u4e0b Python \u83b7\u53d6\u7535\u8111\u786c\u4ef6\u4fe1\u606f\uff0c\u7c7b\u4f3c\u9c81\u5927\u5e08\u90a3\u79cd\u3002"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u5927\u4f6c\u4eec\u597d\uff0c\u95ee\u4e0b Python \u83b7\u53d6\u7535\u8111\u786c\u4ef6\u4fe1\u606f\uff0c\u7c7b\u4f3c\u9c81\u5927\u5e08\u90a3\u79cd\u3002               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : legendnan <\/span>  <span><i><\/i> 3<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\">                        \u7528 wmi \u80fd\u83b7\u53d6\u5230\u663e\u5361\u4fe1\u606f\uff0c\u4f46\u662f\u6211\u7684\u7535\u8111\u4e0a\u88c5\u6709\u8fdc\u7a0b\u5de5\u5177\u3002\u73b0\u5728\u8bfb\u53d6\u5230\u4e86 3 \u4e2a\u4fe1\u606f\u3002\u8bf7\u95ee\u6211\u8981\u5982\u4f55\u624d\u80fd\u77e5\u9053\u6211\u7528\u7684\u662f\u54ea\u4e2a\uff1f\u800c\u4e14\u5982\u679c\u7535\u8111\u6709\u96c6\u6210\u663e\u5361\u8ddf\u72ec\u663e\uff0c\u6211\u60f3\u8981\u72ec\u663e\u7684\u4e0d\u8981\u96c6\u6210\u663e\u5361\uff0c\u8bf7\u95ee\u5982\u4f55\u5b9e\u73b0\uff1f<\/p>\n<p>py \u4ee3\u7801\uff1a<br \/>for xk in w.Win32_VideoController():<br \/> print(xk)<br \/> print(&#8220;&#8221;)<\/p>\n<p>\u7cfb\u7edf\u8fd4\u56de\u4fe1\u606f<br \/>instance of Win32_VideoController<br \/>{<br \/> AdapterCompatibility = &#8220;Intel Corporation&#8221;;<br \/> AdapterDACType = &#8220;Internal&#8221;;<br \/> AdapterRAM = 1073741824;<br \/> Availability = 3;<br \/> Caption = &#8220;Intel(R) HD Graphics 630&#8221;;<br \/> ConfigManagerErrorCode = 0;<br \/> ConfigManagerUserConfig = FALSE;<br \/> CreationClassName = &#8220;Win32_VideoController&#8221;;<br \/> CurrentBitsPerPixel = 32;<br \/> CurrentHorizontalResolution = 1680;<br \/> CurrentNumberOfColors = &#8220;4294967296&#8221;;<br \/> CurrentNumberOfColumns = 0;<br \/> CurrentNumberOfRows = 0;<br \/> CurrentRefreshRate = 59;<br \/> CurrentScanMode = 4;<br \/> CurrentVerticalResolution = 1050;<br \/> Description = &#8220;Intel(R) HD Graphics 630&#8221;;<br \/> DeviceID = &#8220;VideoController1&#8221;;<br \/> DitherType = 0;<br \/> DriverDate = &#8220;20171115000000.000000-000&#8221;;<br \/> DriverVersion = &#8220;21.20.16.4860&#8221;;<br \/> InfFilename = &#8220;oem6.inf&#8221;;<br \/> InfSection = &#8220;iKBLD_w7&#8221;;<br \/> InstalledDisplayDrivers = &#8220;igdumdim64.dll,igd10iumd64.dll,igd10iumd64.dll,igdumdim32,igd10iumd32,igd10iumd32&#8221;;<br \/> MaxRefreshRate = 75;<br \/> MinRefreshRate = 59;<br \/> Monochrome = FALSE;<br \/> Name = &#8220;Intel(R) HD Graphics 630&#8221;;<br \/> PNPDeviceID = &#8220;PCI\\VEN_8086&amp;DEV_5912&amp;SUBSYS_7A741462&amp;REV_04\\3&amp;11583659&amp;0&amp;10&#8221;;<br \/> Status = &#8220;OK&#8221;;<br \/> SystemCreationClassName = &#8220;Win32_ComputerSystem&#8221;;<br \/> SystemName = &#8220;PC-20190727BPDJ&#8221;;<br \/> VideoArchitecture = 5;<br \/> VideoMemoryType = 2;<br \/> VideoModeDescription = &#8220;1680 x 1050 x 4294967296 colors&#8221;;<br \/> VideoProcessor = &#8220;Intel(R) HD Graphics Family&#8221;;<br \/>};<\/p>\n<p>instance of Win32_VideoController<br \/>{<br \/> AdapterCompatibility = &#8220;Shanghai Best Oray Information Technology Co., Ltd.&#8221;;<br \/> Availability = 8;<br \/> Caption = &#8220;Oray Display Mirror Driver&#8221;;<br \/> ConfigManagerErrorCode = 0;<br \/> ConfigManagerUserConfig = FALSE;<br \/> CreationClassName = &#8220;Win32_VideoController&#8221;;<br \/> Description = &#8220;Oray Display Mirror Driver&#8221;;<br \/> DeviceID = &#8220;VideoController2&#8221;;<br \/> DriverDate = &#8220;20111026000000.000000-000&#8221;;<br \/> DriverVersion = &#8220;1.0.1.17485&#8221;;<br \/> InfFilename = &#8220;oem25.inf&#8221;;<br \/> InfSection = &#8220;OrayMir_Inst&#8221;;<br \/> Monochrome = FALSE;<br \/> Name = &#8220;Oray Display Mirror Driver&#8221;;<br \/> PNPDeviceID = &#8220;ROOT\\DISPLAY\\0000&#8221;;<br \/> Status = &#8220;OK&#8221;;<br \/> SystemCreationClassName = &#8220;Win32_ComputerSystem&#8221;;<br \/> SystemName = &#8220;PC-20190727BPDJ&#8221;;<br \/> VideoArchitecture = 5;<br \/> VideoMemoryType = 2;<br \/>};<\/p>\n<p>instance of Win32_VideoController<br \/>{<br \/> AdapterCompatibility = &#8220;Famatech&#8221;;<br \/> Availability = 8;<br \/> Caption = &#8220;Radmin Mirror Driver V3&#8221;;<br \/> ConfigManagerErrorCode = 0;<br \/> ConfigManagerUserConfig = FALSE;<br \/> CreationClassName = &#8220;Win32_VideoController&#8221;;<br \/> Description = &#8220;Radmin Mirror Driver V3&#8221;;<br \/> DeviceID = &#8220;VideoController3&#8221;;<br \/> DriverDate = &#8220;20070808000000.000000-000&#8221;;<br \/> DriverVersion = &#8220;3.1.0.0&#8221;;<br \/> InfFilename = &#8220;oem31.inf&#8221;;<br \/> InfSection = &#8220;mirrorv3&#8221;;<br \/> Monochrome = FALSE;<br \/> Name = &#8220;Radmin Mirror Driver V3&#8221;;<br \/> PNPDeviceID = &#8220;ROOT\\DISPLAY\\0001&#8221;;<br \/> Status = &#8220;OK&#8221;;<br \/> SystemCreationClassName = &#8220;Win32_ComputerSystem&#8221;;<br \/> SystemName = &#8220;PC-20190727BPDJ&#8221;;<br \/> VideoArchitecture = 5;<br \/> VideoMemoryType = 2;<br \/>};      <\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>6<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"3817079\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ragnaroks <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             VideoMemoryType == 3                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3817080\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ShuoHui <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u770b\u7740\u5934\u75bc\uff0c\u5efa\u8bae\u4ee3\u7801\u4e0b\u6b21\u7528 md \u5305\u4e00\u4e0b                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3817081\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : legendnan <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @ragnaroks \u5927\u4f6c\uff0c\u6211\u7684\u7535\u8111\u7528\u7684\u96c6\u6210\u7684\uff0cvideoMemoryType \u4e5f\u662f 2 \u5462\uff0c\u8fd9\u4e2a\u96c6\u6210\u7684\u4e0e\u8fdc\u7a0b\u5de5\u5177\u5982\u4f55\u533a\u5206\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3817082\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ungrown <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             https:\/\/www.thepythoncode.com\/article\/get-hardware-system-information-python<br \/>\u4ec5\u4f9b\u53c2\u8003                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3817083\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : wittyfans <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u7528 python \u8c03\u7528 cmd \u6216\u8005 powershell                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3817084\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ragnaroks <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @legendnan \u96c6\u6210\u663e\u5361\u501f\u7528\u7684\u7cfb\u7edf\u5185\u5b58,\u53ef\u4ee5\u533a\u5206\u72ec\u663e,\u4e0d\u8fc7\u8fdc\u7a0b\u684c\u9762\u53ef\u80fd\u8981\u60f3\u522b\u7684\u529e\u6cd5                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u5927\u4f6c\u4eec\u597d\uff0c\u95ee\u4e0b Python \u83b7\u53d6&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/169426"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=169426"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/169426\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=169426"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=169426"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=169426"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}