{"id":104929,"date":"2022-05-24T13:15:06","date_gmt":"2022-05-24T05:15:06","guid":{"rendered":"http:\/\/www.zhushiyao.com\/?p=104929"},"modified":"2022-05-24T13:15:33","modified_gmt":"2022-05-24T05:15:33","slug":"2456fa602d","status":"publish","type":"post","link":"http:\/\/www.zhushiyao.com\/?p=104929","title":{"rendered":"10\u4e2a\u6709\u8da3\u7684 Python \u9ad8\u7ea7\u811a\u672c\uff0c\u5efa\u8bae\u6536\u85cf\uff01"},"content":{"rendered":"<div class=\"bpp-post-content\">\n<blockquote class=\"js_blockquote_wrap\">\n<section class=\"js_blockquote_digest\">\n<section>\n<p style=\"text-align: left;\"><span style=\"color: #0052ff;\"><strong><span style=\"font-size: 14px;\">\u6765\u81ea\u516c\u4f17\u53f7\uff1a<span style=\"outline: 0px; font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; letter-spacing: 0.544px; text-align: start;\">\u6cd5\u7eb3\u65af\u7279<\/span><\/span><\/strong><\/span><\/p>\n<\/section>\n<\/section>\n<\/blockquote>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em; text-align: left;\"><span style=\"font-size: 15px; letter-spacing: 0px; text-indent: 0em;\">\u5927\u5bb6\u597d\uff0c\u6211\u662f\u5c0fF\u3002<\/span><\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em;\">\u00a0<\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em; text-align: left;\"><span style=\"font-size: 15px; letter-spacing: 0px; text-indent: 0em;\">\u5728\u65e5\u5e38\u7684\u5de5\u4f5c\u4e2d\uff0c\u6211\u4eec\u603b\u4f1a\u9762\u4e34\u5230\u5404\u5f0f\u5404\u6837\u7684\u95ee\u9898\u3002<\/span><\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em;\">\u00a0<\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em; text-align: left;\"><span style=\"font-size: 15px; letter-spacing: 0px; text-indent: 0em;\">\u5176\u4e2d\u4e0d\u5c11\u7684\u95ee\u9898\uff0c\u4f7f\u7528\u4e00\u4e9b\u7b80\u5355\u7684Python\u4ee3\u7801\u5c31\u80fd\u89e3\u51b3\u3002<\/span><\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em;\">\u00a0<\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em; text-align: left;\"><span style=\"font-size: 15px; letter-spacing: 0px; text-indent: 0em;\">\u6bd4\u5982\u4e0d\u4e45\u524d\u7684\u590d\u65e6\u5927\u4f6c\uff0c\u7528130\u884cPython\u4ee3\u7801\u786c\u6838\u641e\u5b9a\u6838\u9178\u7edf\u8ba1\uff0c\u5927\u5927\u63d0\u5347\u4e86\u6548\u7387\uff0c\u8282\u7701\u4e86\u4e0d\u5c11\u65f6\u95f4\u3002<\/span><\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em; text-align: left;\">\u00a0<\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em; text-align: left;\"><span style=\"font-size: 15px; letter-spacing: 0px; text-indent: 0em;\">\u4eca\u5929\uff0c\u5c0fF\u5c31\u5e26\u5927\u5bb6\u5b66\u4e60\u4e00\u4e0b10\u4e2aPython\u811a\u672c\u7a0b\u5e8f\u3002<\/span><\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em;\">\u00a0<\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em; text-align: left;\"><span style=\"font-size: 15px; letter-spacing: 0px; text-indent: 0em;\">\u867d\u7136\u7b80\u5355\uff0c\u4e0d\u8fc7\u8fd8\u662f\u86ee\u6709\u7528\u7684\u3002<\/span><\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em;\">\u00a0<\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em; text-align: left;\"><span style=\"font-size: 15px; letter-spacing: 0px; text-indent: 0em;\">\u6709\u5174\u8da3\u7684\u53ef\u4ee5\u81ea\u5df1\u53bb\u5b9e\u73b0\uff0c\u627e\u5230\u5bf9\u81ea\u5df1\u6709\u5e2e\u52a9\u7684\u6280\u5de7\u3002<\/span><\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em;\">\u00a0<\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em;\">\u00a0<\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em; text-align: left;\"><span style=\"font-weight: bolder; color: #3c69ed; background-color: #ffffff; letter-spacing: 0px; text-indent: 0em; font-size: 15px;\">\u258d1\u3001Jpg\u8f6cPng<\/span><\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em; text-align: left;\">\u00a0<\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em; text-align: left;\"><span style=\"letter-spacing: 0px; text-indent: 0em; font-size: 15px;\">\u56fe\u7247\u683c\u5f0f\u8f6c\u6362\uff0c\u4ee5\u524d\u5c0fF\u53ef\u80fd\u7b2c\u4e00\u65f6\u95f4\u60f3\u5230\u7684\u662f\u3010\u683c\u5f0f\u5de5\u5382\u3011\u8fd9\u4e2a\u8f6f\u4ef6\u3002<\/span><\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em;\">\u00a0<\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em; text-align: left;\"><span style=\"letter-spacing: 0px; text-indent: 0em; font-size: 15px;\">\u5982\u4eca\u7f16\u5199\u4e00\u4e2aPython\u811a\u672c\u5c31\u80fd\u5b8c\u6210\u5404\u79cd\u56fe\u7247\u683c\u5f0f\u7684\u8f6c\u6362<\/span><span style=\"font-size: 15px; letter-spacing: 0px; text-indent: 0em;\">\uff0c\u6b64\u5904\u4ee5jpg\u8f6c\u6210png\u4e3a\u4f8b\u3002<\/span><\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em; text-align: left;\">\u00a0<\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em; text-align: left;\"><span style=\"letter-spacing: 0px; text-indent: 0em; font-size: 15px;\">\u6709\u4e24\u79cd\u89e3\u51b3\u65b9\u6cd5\uff0c\u90fd\u5206\u4eab\u7ed9\u5927\u5bb6\u3002<\/span><\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em;\">\u00a0<\/p>\n<section style=\"letter-spacing: 0px; white-space: normal; font-size: 16px; color: #3e3e3e; line-height: 1.6; font-family: 'Helvetica Neue', Helvetica, 'Hiragino Sans GB', 'Microsoft YaHei', Arial, sans-serif;\">\n<p style=\"margin-right: 8px; margin-left: 8px; padding: 0.5em; line-height: 15px; font-size: 11px; word-spacing: -3px; letter-spacing: 0px; font-family: Consolas, Inconsolata, Courier, monospace; border-radius: 0px; color: #a9b7c6; background: #282b2e; overflow-wrap: normal !important; word-break: normal !important; overflow: auto !important; display: -webkit-box !important; text-align: left;\"><span style=\"font-size: inherit; line-height: inherit; color: #808080; overflow-wrap: inherit !important; word-break: inherit !important;\">#\u00a0\u56fe\u7247\u683c\u5f0f\u8f6c\u6362,\u00a0Jpg\u8f6cPng<\/span><br \/><br \/><span style=\"font-size: inherit; line-height: inherit; color: #808080; overflow-wrap: inherit !important; word-break: inherit !important;\">#\u00a0\u65b9\u6cd5\u2460<\/span><br \/><span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">from<\/span>\u00a0PIL\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">import<\/span>\u00a0Image<br \/><br \/>img\u00a0=\u00a0Image.open(<span style=\"font-size: inherit; line-height: inherit; color: #eedc70; overflow-wrap: inherit !important; word-break: inherit !important;\">&#8216;test.jpg&#8217;<\/span>)<br \/>img.save(<span style=\"font-size: inherit; line-height: inherit; color: #eedc70; overflow-wrap: inherit !important; word-break: inherit !important;\">&#8216;test1.png&#8217;<\/span>)<br \/><br \/><br \/><span style=\"font-size: inherit; line-height: inherit; color: #808080; overflow-wrap: inherit !important; word-break: inherit !important;\">#\u00a0\u65b9\u6cd5\u2461<\/span><br \/><span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">from<\/span>\u00a0cv2\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">import<\/span>\u00a0imread,\u00a0imwrite<br \/><br \/>image\u00a0=\u00a0imread(<span style=\"font-size: inherit; line-height: inherit; color: #eedc70; overflow-wrap: inherit !important; word-break: inherit !important;\">&#8220;test.jpg&#8221;<\/span>,\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #ae87fa; overflow-wrap: inherit !important; word-break: inherit !important;\">1<\/span>)<br \/>imwrite(<span style=\"font-size: inherit; line-height: inherit; color: #eedc70; overflow-wrap: inherit !important; word-break: inherit !important;\">&#8220;test2.png&#8221;<\/span>,\u00a0image)<\/p>\n<\/section>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em; text-align: left;\">\u00a0<\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em;\">\u00a0<\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em; text-align: left;\"><span style=\"background-color: #ffffff; color: #3c69ed; font-size: 15px; font-weight: bolder; letter-spacing: 0px; text-indent: 0em;\">\u258d2\u3001<\/span><span style=\"color: #3c69ed; font-size: 15px; font-weight: bolder; letter-spacing: 0px; text-indent: 0em;\">PDF\u52a0\u5bc6\u548c\u89e3\u5bc6<\/span><\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em; text-align: left;\">\u00a0<\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em; text-align: left;\"><span style=\"font-size: 15px; letter-spacing: 0px; text-indent: 0em;\">\u5982\u679c\u4f60\u6709100\u4e2a\u6216\u66f4\u591a\u7684PDF\u6587\u4ef6\u9700\u8981\u52a0\u5bc6\uff0c\u624b\u52a8\u8fdb\u884c\u52a0\u5bc6\u80af\u5b9a\u662f\u4e0d\u53ef\u884c\u7684\uff0c\u6781\u5176\u6d6a\u8d39\u65f6\u95f4\u3002<\/span><\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em;\">\u00a0<\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em; text-align: left;\"><span style=\"font-size: 15px; letter-spacing: 0px; text-indent: 0em;\">\u4f7f\u7528Python\u7684pikepdf\u6a21\u5757\uff0c\u5373\u53ef\u5bf9\u6587\u4ef6\u8fdb\u884c\u52a0\u5bc6\uff0c\u5199\u4e00\u4e2a\u5faa\u73af\u5c31\u80fd\u8fdb\u884c\u6279\u91cf\u52a0\u5bc6\u6587\u6863\u3002<\/span><\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em;\">\u00a0<\/p>\n<section style=\"letter-spacing: 0px; white-space: normal; font-size: 16px; color: #3e3e3e; line-height: 1.6; font-family: 'Helvetica Neue', Helvetica, 'Hiragino Sans GB', 'Microsoft YaHei', Arial, sans-serif;\">\n<p style=\"margin-right: 8px; margin-left: 8px; padding: 0.5em; line-height: 15px; font-size: 11px; word-spacing: -3px; letter-spacing: 0px; font-family: Consolas, Inconsolata, Courier, monospace; border-radius: 0px; color: #a9b7c6; background: #282b2e; overflow-wrap: normal !important; word-break: normal !important; overflow: auto !important; display: -webkit-box !important; text-align: left;\"><span style=\"font-size: inherit; line-height: inherit; color: #808080; overflow-wrap: inherit !important; word-break: inherit !important;\">#\u00a0PDF\u52a0\u5bc6<\/span><br \/><span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">import<\/span>\u00a0pikepdf<br \/><br \/>pdf\u00a0=\u00a0pikepdf.open(<span style=\"font-size: inherit; line-height: inherit; color: #eedc70; overflow-wrap: inherit !important; word-break: inherit !important;\">&#8220;test.pdf&#8221;<\/span>)<br \/>pdf.save(<span style=\"font-size: inherit; line-height: inherit; color: #eedc70; overflow-wrap: inherit !important; word-break: inherit !important;\">&#8216;encrypt.pdf&#8217;<\/span>,\u00a0encryption=pikepdf.Encryption(owner=<span style=\"font-size: inherit; line-height: inherit; color: #eedc70; overflow-wrap: inherit !important; word-break: inherit !important;\">&#8220;your_password&#8221;<\/span>,\u00a0user=<span style=\"font-size: inherit; line-height: inherit; color: #eedc70; overflow-wrap: inherit !important; word-break: inherit !important;\">&#8220;your_password&#8221;<\/span>,\u00a0R=<span style=\"font-size: inherit; line-height: inherit; color: #ae87fa; overflow-wrap: inherit !important; word-break: inherit !important;\">4<\/span>))<br \/>pdf.close()<\/p>\n<\/section>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em; text-align: left;\">\u00a0<\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em; text-align: left;\"><span style=\"font-size: 15px; letter-spacing: 0px; text-indent: 0em;\">\u6709\u52a0\u5bc6\u90a3\u4e48\u4fbf\u4f1a\u6709\u89e3\u5bc6\uff0c\u4ee3\u7801\u5982\u4e0b\u3002<\/span><\/p>\n<section style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em;\"><\/section>\n<section style=\"letter-spacing: 0px; white-space: normal; font-size: 16px; color: #3e3e3e; line-height: 1.6; font-family: 'Helvetica Neue', Helvetica, 'Hiragino Sans GB', 'Microsoft YaHei', Arial, sans-serif;\">\n<section style=\"margin-right: 8px; margin-left: 8px; padding: 0.5em; line-height: 15px; font-size: 11px; word-spacing: -3px; letter-spacing: 0px; font-family: Consolas, Inconsolata, Courier, monospace; border-radius: 0px; color: #a9b7c6; background: #282b2e; overflow-wrap: normal !important; word-break: normal !important; overflow: auto !important; display: -webkit-box !important; text-align: left;\"><span style=\"font-size: inherit; line-height: inherit; color: #808080; overflow-wrap: inherit !important; word-break: inherit !important;\">#\u00a0PDF\u89e3\u5bc6<\/span><br \/><span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">import<\/span>\u00a0pikepdf<br \/><br \/>pdf\u00a0=\u00a0pikepdf.open(<span style=\"font-size: inherit; line-height: inherit; color: #eedc70; overflow-wrap: inherit !important; word-break: inherit !important;\">&#8220;encrypt.pdf&#8221;<\/span>,\u00a0\u00a0password=<span style=\"font-size: inherit; line-height: inherit; color: #eedc70; overflow-wrap: inherit !important; word-break: inherit !important;\">&#8216;your_password&#8217;<\/span>)<br \/>pdf.save(<span style=\"font-size: inherit; line-height: inherit; color: #eedc70; overflow-wrap: inherit !important; word-break: inherit !important;\">&#8220;decrypt.pdf&#8221;<\/span>)<br \/>pdf.close()<\/section>\n<\/section>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em; text-align: left;\">\u00a0<\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em; text-align: left;\">\u00a0<\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em; text-align: left;\"><span style=\"letter-spacing: 0px; text-indent: 0em; font-size: 15px;\"><span style=\"letter-spacing: 0px; text-indent: 0em; background-color: #ffffff; color: #3c69ed; font-weight: bolder;\">\u258d3\u3001<\/span><span style=\"letter-spacing: 0px; text-indent: 0em; color: #3c69ed; font-weight: bolder;\">\u83b7\u53d6\u7535\u8111\u7684\u914d\u7f6e\u4fe1\u606f<\/span><\/span><\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em;\">\u00a0<\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em; text-align: left;\"><span style=\"font-size: 15px;\">\u5f88\u591a\u5c0f\u4f19\u4f34\u53ef\u80fd\u4f1a\u4f7f\u7528\u9c81\u5927\u5e08\u6765\u770b\u81ea\u5df1\u7684\u7535\u8111\u914d\u7f6e\uff0c\u8fd9\u6837\u8fd8\u9700\u8981\u4e0b\u8f7d\u4e00\u4e2a\u8f6f\u4ef6\u3002<\/span><\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em;\">\u00a0<\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em; text-align: left;\"><span style=\"font-size: 15px;\">\u4f7f\u7528Python\u7684WMI\u6a21\u5757\uff0c\u4fbf\u53ef\u4ee5\u8f7b\u677e\u67e5\u770b\u4f60\u7684\u7535\u8111\u4fe1\u606f\u3002<\/span><\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em;\">\u00a0<\/p>\n<section style=\"letter-spacing: 0px; white-space: normal; font-size: 16px; color: #3e3e3e; line-height: 1.6; font-family: 'Helvetica Neue', Helvetica, 'Hiragino Sans GB', 'Microsoft YaHei', Arial, sans-serif;\">\n<p style=\"margin-right: 8px; margin-left: 8px; padding: 0.5em; line-height: 15px; font-size: 11px; word-spacing: -3px; letter-spacing: 0px; font-family: Consolas, Inconsolata, Courier, monospace; border-radius: 0px; color: #a9b7c6; background: #282b2e; overflow-wrap: normal !important; word-break: normal !important; overflow: auto !important; display: -webkit-box !important; text-align: left;\"><span style=\"font-size: inherit; line-height: inherit; color: #808080; overflow-wrap: inherit !important; word-break: inherit !important;\">#\u00a0\u83b7\u53d6\u8ba1\u7b97\u673a\u4fe1\u606f<\/span><br \/><span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">import<\/span>\u00a0wmi<br \/><br \/><br \/><span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\"><span style=\"line-height: inherit; overflow-wrap: inherit !important; word-break: inherit !important;\">def<\/span>\u00a0<span style=\"line-height: inherit; color: #a5da2d; overflow-wrap: inherit !important; word-break: inherit !important;\">System_spec<\/span><span style=\"line-height: inherit; color: #ff9823; overflow-wrap: inherit !important; word-break: inherit !important;\">()<\/span>:<\/span><br \/>\u00a0\u00a0\u00a0\u00a0Pc\u00a0=\u00a0wmi.WMI()<br \/>\u00a0\u00a0\u00a0\u00a0os_info\u00a0=\u00a0Pc.Win32_OperatingSystem()[<span style=\"font-size: inherit; line-height: inherit; color: #ae87fa; overflow-wrap: inherit !important; word-break: inherit !important;\">0<\/span>]<br \/>\u00a0\u00a0\u00a0\u00a0processor\u00a0=\u00a0Pc.Win32_Processor()[<span style=\"font-size: inherit; line-height: inherit; color: #ae87fa; overflow-wrap: inherit !important; word-break: inherit !important;\">0<\/span>]<br \/>\u00a0\u00a0\u00a0\u00a0Gpu\u00a0=\u00a0Pc.Win32_VideoController()[<span style=\"font-size: inherit; line-height: inherit; color: #ae87fa; overflow-wrap: inherit !important; word-break: inherit !important;\">0<\/span>]<br \/>\u00a0\u00a0\u00a0\u00a0os_name\u00a0=\u00a0os_info.Name.encode(<span style=\"font-size: inherit; line-height: inherit; color: #eedc70; overflow-wrap: inherit !important; word-break: inherit !important;\">&#8216;utf-8&#8217;<\/span>).split(<span style=\"font-size: inherit; line-height: inherit; color: #eedc70; overflow-wrap: inherit !important; word-break: inherit !important;\">b&#8217;|&#8217;<\/span>)[<span style=\"font-size: inherit; line-height: inherit; color: #ae87fa; overflow-wrap: inherit !important; word-break: inherit !important;\">0<\/span>]<br \/>\u00a0\u00a0\u00a0\u00a0ram\u00a0=\u00a0float(os_info.TotalVisibleMemorySize)\u00a0\/\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #ae87fa; overflow-wrap: inherit !important; word-break: inherit !important;\">1048576<\/span><br \/><br \/>\u00a0\u00a0\u00a0\u00a0print(<span style=\"font-size: inherit; line-height: inherit; color: #eedc70; overflow-wrap: inherit !important; word-break: inherit !important;\">f&#8217;\u64cd\u4f5c\u7cfb\u7edf:\u00a0<span style=\"color: inherit; line-height: inherit; overflow-wrap: inherit !important; word-break: inherit !important;\">{os_name}<\/span>&#8216;<\/span>)<br \/>\u00a0\u00a0\u00a0\u00a0print(<span style=\"font-size: inherit; line-height: inherit; color: #eedc70; overflow-wrap: inherit !important; word-break: inherit !important;\">f&#8217;CPU:\u00a0<span style=\"color: inherit; line-height: inherit; overflow-wrap: inherit !important; word-break: inherit !important;\">{processor.Name}<\/span>&#8216;<\/span>)<br \/>\u00a0\u00a0\u00a0\u00a0print(<span style=\"font-size: inherit; line-height: inherit; color: #eedc70; overflow-wrap: inherit !important; word-break: inherit !important;\">f&#8217;\u5185\u5b58:\u00a0<span style=\"color: inherit; line-height: inherit; overflow-wrap: inherit !important; word-break: inherit !important;\">{ram}<\/span>\u00a0GB&#8217;<\/span>)<br \/>\u00a0\u00a0\u00a0\u00a0print(<span style=\"font-size: inherit; line-height: inherit; color: #eedc70; overflow-wrap: inherit !important; word-break: inherit !important;\">f&#8217;\u663e\u5361:\u00a0<span style=\"color: inherit; line-height: inherit; overflow-wrap: inherit !important; word-break: inherit !important;\">{Gpu.Name}<\/span>&#8216;<\/span>)<br \/><br \/>\u00a0\u00a0\u00a0\u00a0print(<span style=\"font-size: inherit; line-height: inherit; color: #eedc70; overflow-wrap: inherit !important; word-break: inherit !important;\">&#8220;n\u8ba1\u7b97\u673a\u4fe1\u606f\u5982\u4e0a\u00a0\u2191\u00a0\u2191\u00a0\u2191\u00a0\u2191\u00a0\u2191\u00a0\u2191\u00a0\u2191\u00a0\u2191\u00a0\u2191\u00a0\u2191\u00a0\u2191\u00a0\u2191&#8221;<\/span>)<br \/><br \/><br \/>System_spec()<\/p>\n<\/section>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em; text-align: left;\">\u00a0<\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em; text-align: left;\"><span style=\"font-size: 15px;\">\u5c31\u4ee5\u5c0fF\u81ea\u5df1\u7684\u7535\u8111\u4e3a\u4f8b\uff0c\u8fd0\u884c\u4ee3\u7801\u5c31\u80fd\u770b\u5230\u914d\u7f6e\u3002<\/span><\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em;\">\u00a0<\/p>\n<section style=\"margin-right: 8px; margin-bottom: 0em; margin-left: 8px; white-space: normal; text-align: left;\"><img decoding=\"async\" class=\"rich_pages wxw-img js_insertlocalimg\" title=\"10\u4e2a\u6709\u8da3\u7684 Python \u9ad8\u7ea7\u811a\u672c\uff0c\u5efa\u8bae\u6536\u85cf\uff01\" src=\"http:\/\/www.zhushiyao.com\/wp-content\/uploads\/2022\/05\/3-1653369306.jpeg\" alt=\"10\u4e2a\u6709\u8da3\u7684 Python \u9ad8\u7ea7\u811a\u672c\uff0c\u5efa\u8bae\u6536\u85cf\uff01\" \/><\/section>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em; text-align: left;\">\u00a0<\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em; text-align: left;\">\u00a0<\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em; text-align: left;\"><span style=\"font-size: 15px; letter-spacing: 0px; text-indent: 0em; background-color: #ffffff; color: #3c69ed; font-weight: bolder;\">\u258d4\u3001\u89e3\u538b\u6587\u4ef6<\/span><\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em;\">\u00a0<\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em; text-align: left;\"><span style=\"font-size: 15px;\">\u4f7f\u7528zipfile\u6a21\u5757\u8fdb\u884c\u6587\u4ef6\u89e3\u538b\uff0c<\/span><span style=\"letter-spacing: 0px; text-indent: 0em; font-size: 15px;\">\u540c\u7406\u4e5f\u53ef\u4ee5\u5bf9\u6587\u4ef6\u8fdb\u884c\u538b\u7f29\u3002<\/span><\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em;\">\u00a0<\/p>\n<section style=\"letter-spacing: 0px; white-space: normal; font-size: 16px; color: #3e3e3e; line-height: 1.6; font-family: 'Helvetica Neue', Helvetica, 'Hiragino Sans GB', 'Microsoft YaHei', Arial, sans-serif;\">\n<p style=\"margin-right: 8px; margin-left: 8px; padding: 0.5em; line-height: 15px; font-size: 11px; word-spacing: -3px; letter-spacing: 0px; font-family: Consolas, Inconsolata, Courier, monospace; border-radius: 0px; color: #a9b7c6; background: #282b2e; overflow-wrap: normal !important; word-break: normal !important; overflow: auto !important; display: -webkit-box !important; text-align: left;\"><span style=\"font-size: inherit; line-height: inherit; color: #808080; overflow-wrap: inherit !important; word-break: inherit !important;\">#\u00a0\u89e3\u538b\u6587\u4ef6<\/span><br \/><span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">from<\/span>\u00a0zipfile\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">import<\/span>\u00a0ZipFile<br \/><br \/>unzip\u00a0=\u00a0ZipFile(<span style=\"font-size: inherit; line-height: inherit; color: #eedc70; overflow-wrap: inherit !important; word-break: inherit !important;\">&#8220;file.zip&#8221;<\/span>,\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #eedc70; overflow-wrap: inherit !important; word-break: inherit !important;\">&#8220;r&#8221;<\/span>)<br \/>unzip.extractall(<span style=\"font-size: inherit; line-height: inherit; color: #eedc70; overflow-wrap: inherit !important; word-break: inherit !important;\">&#8220;output\u00a0Folder&#8221;<\/span>)<\/p>\n<\/section>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em; text-align: left;\">\u00a0<\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em; text-align: left;\">\u00a0<\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em; text-align: left;\"><span style=\"letter-spacing: 0px; text-indent: 0em; font-size: 15px;\"><span style=\"letter-spacing: 0px; text-indent: 0em; background-color: #ffffff; color: #3c69ed; font-weight: bolder;\">\u258d5\u3001<\/span><span style=\"letter-spacing: 0px; text-indent: 0em; color: #3c69ed; font-weight: bolder;\">Excel\u5de5\u4f5c\u8868\u5408\u5e76<\/span><\/span><\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em;\">\u00a0<\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em; text-align: left;\"><span style=\"font-size: 15px;\">\u5e2e\u52a9\u4f60\u5c06Excel\u5de5\u4f5c\u8868\u5408\u5e76\u5230\u4e00\u5f20\u8868\u4e0a\uff0c\u8868\u5185\u5bb9\u5982\u4e0b\u56fe\u3002<\/span><\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em;\">\u00a0<\/p>\n<section style=\"margin-right: 8px; margin-bottom: 0em; margin-left: 8px; white-space: normal; text-align: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img js_insertlocalimg\" style=\"width: 562px; box-sizing: border-box; border: 2px solid #000000;\" title=\"10\u4e2a\u6709\u8da3\u7684 Python \u9ad8\u7ea7\u811a\u672c\uff0c\u5efa\u8bae\u6536\u85cf\uff01\" src=\"http:\/\/www.zhushiyao.com\/wp-content\/uploads\/2022\/05\/0-1653369306.jpeg\" alt=\"10\u4e2a\u6709\u8da3\u7684 Python \u9ad8\u7ea7\u811a\u672c\uff0c\u5efa\u8bae\u6536\u85cf\uff01\" \/><\/section>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em; text-align: left;\">\u00a0<\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em; text-align: left;\"><span style=\"font-size: 15px;\">6\u5f20\u8868\uff0c\u5176\u4f59\u8868\u7684\u5185\u5bb9\u548c\u7b2c\u4e00\u5f20\u8868\u90fd\u4e00\u6837\u3002<\/span><\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em;\">\u00a0<\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em; text-align: left;\"><span style=\"font-size: 15px;\">\u8bbe\u7f6e\u8868\u683c\u6570\u91cf\u4e3a5\uff0c\u5c06\u4f1a\u5408\u5e76\u524d5\u5f20\u8868\u7684\u5185\u5bb9\u3002<br \/><\/span><\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em; text-align: left;\">\u00a0<\/p>\n<section style=\"letter-spacing: 0px; white-space: normal; font-size: 16px; color: #3e3e3e; line-height: 1.6; font-family: 'Helvetica Neue', Helvetica, 'Hiragino Sans GB', 'Microsoft YaHei', Arial, sans-serif;\">\n<p style=\"margin-right: 8px; margin-left: 8px; padding: 0.5em; line-height: 15px; font-size: 11px; word-spacing: -3px; letter-spacing: 0px; font-family: Consolas, Inconsolata, Courier, monospace; border-radius: 0px; color: #a9b7c6; background: #282b2e; overflow-wrap: normal !important; word-break: normal !important; overflow: auto !important; display: -webkit-box !important; text-align: left;\"><span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">import<\/span>\u00a0pandas\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">as<\/span>\u00a0pd<br \/><br \/><span style=\"font-size: inherit; line-height: inherit; color: #808080; overflow-wrap: inherit !important; word-break: inherit !important;\">#\u00a0\u6587\u4ef6\u540d<\/span><br \/>filename\u00a0=\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #eedc70; overflow-wrap: inherit !important; word-break: inherit !important;\">&#8220;test.xlsx&#8221;<\/span><br \/><span style=\"font-size: inherit; line-height: inherit; color: #808080; overflow-wrap: inherit !important; word-break: inherit !important;\">#\u00a0\u8868\u683c\u6570\u91cf<\/span><br \/>T_sheets\u00a0=\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #ae87fa; overflow-wrap: inherit !important; word-break: inherit !important;\">5<\/span><br \/><br \/>df\u00a0=\u00a0[]<br \/><span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">for<\/span>\u00a0i\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">in<\/span>\u00a0range(<span style=\"font-size: inherit; line-height: inherit; color: #ae87fa; overflow-wrap: inherit !important; word-break: inherit !important;\">1<\/span>,\u00a0T_sheets+<span style=\"font-size: inherit; line-height: inherit; color: #ae87fa; overflow-wrap: inherit !important; word-break: inherit !important;\">1<\/span>):<br \/>\u00a0\u00a0\u00a0\u00a0sheet_data\u00a0=\u00a0pd.read_excel(filename,\u00a0sheet_name=i,\u00a0header=<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">None<\/span>)<br \/>\u00a0\u00a0\u00a0\u00a0df.append(sheet_data)<br \/><br \/><span style=\"font-size: inherit; line-height: inherit; color: #808080; overflow-wrap: inherit !important; word-break: inherit !important;\">#\u00a0\u5408\u5e76\u8868\u683c<\/span><br \/>output\u00a0=\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #eedc70; overflow-wrap: inherit !important; word-break: inherit !important;\">&#8220;merged.xlsx&#8221;<\/span><br \/>df\u00a0=\u00a0pd.concat(df)<br \/>df.to_excel(output)<\/p>\n<\/section>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em; text-align: left;\">\u00a0<\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em; text-align: left;\"><span style=\"font-size: 15px;\">\u7ed3\u679c\u5982\u4e0b\u3002<\/span><\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em;\">\u00a0<\/p>\n<section style=\"margin-right: 8px; margin-bottom: 0em; margin-left: 8px; white-space: normal; text-align: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img js_insertlocalimg\" style=\"box-sizing: border-box; border: 2px solid #000000;\" title=\"10\u4e2a\u6709\u8da3\u7684 Python \u9ad8\u7ea7\u811a\u672c\uff0c\u5efa\u8bae\u6536\u85cf\uff01\" src=\"http:\/\/www.zhushiyao.com\/wp-content\/uploads\/2022\/05\/3-1653369306-1.jpeg\" alt=\"10\u4e2a\u6709\u8da3\u7684 Python \u9ad8\u7ea7\u811a\u672c\uff0c\u5efa\u8bae\u6536\u85cf\uff01\" \/><\/section>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em; text-align: left;\">\u00a0<\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em;\">\u00a0<\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em; text-align: left;\"><span style=\"font-size: 15px; letter-spacing: 0px; text-indent: 0em; background-color: #ffffff; color: #3c69ed; font-weight: bolder;\">\u258d6\u3001\u5c06\u56fe\u50cf\u8f6c\u6362\u4e3a\u7d20\u63cf\u56fe<\/span><\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em; text-align: left;\">\u00a0<\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em; text-align: left;\"><span style=\"font-size: 15px;\">\u548c\u4e4b\u524d\u7684\u56fe\u7247\u683c\u5f0f\u8f6c\u6362\u6709\u70b9\u7c7b\u4f3c\uff0c\u5c31\u662f\u5bf9\u56fe\u50cf\u8fdb\u884c\u5904\u7406\u3002<\/span><\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em;\">\u00a0<\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em; text-align: left;\"><span style=\"font-size: 15px;\">\u4ee5\u524d\u5927\u5bb6\u53ef\u80fd\u4f1a\u4f7f\u7528\u5230\u7f8e\u56fe\u79c0\u79c0\uff0c\u73b0\u5728\u53ef\u80fd\u5c31\u662f\u6296\u97f3\u7684\u6ee4\u955c\u4e86\u3002<br \/><\/span><\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em;\">\u00a0<\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em; text-align: left;\"><span style=\"font-size: 15px;\">\u5176\u5b9e\u4f7f\u7528Python\u7684OpenCV\uff0c\u5c31\u80fd\u591f\u5feb\u901f\u5b9e\u73b0\u5f88\u591a\u4f60\u60f3\u8981\u7684\u6548\u679c\u3002<\/span><\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em;\">\u00a0<\/p>\n<section style=\"letter-spacing: 0px; white-space: normal; font-size: 16px; color: #3e3e3e; line-height: 1.6; font-family: 'Helvetica Neue', Helvetica, 'Hiragino Sans GB', 'Microsoft YaHei', Arial, sans-serif;\">\n<p style=\"margin-right: 8px; margin-left: 8px; padding: 0.5em; line-height: 15px; font-size: 11px; word-spacing: -3px; letter-spacing: 0px; font-family: Consolas, Inconsolata, Courier, monospace; border-radius: 0px; color: #a9b7c6; background: #282b2e; overflow-wrap: normal !important; word-break: normal !important; overflow: auto !important; display: -webkit-box !important; text-align: left;\"><span style=\"font-size: inherit; line-height: inherit; color: #808080; overflow-wrap: inherit !important; word-break: inherit !important;\">#\u00a0\u56fe\u50cf\u8f6c\u6362<\/span><br \/><span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">import<\/span>\u00a0cv2<br \/><br \/><span style=\"font-size: inherit; line-height: inherit; color: #808080; overflow-wrap: inherit !important; word-break: inherit !important;\">#\u00a0\u8bfb\u53d6\u56fe\u7247<\/span><br \/>img\u00a0=\u00a0cv2.imread(<span style=\"font-size: inherit; line-height: inherit; color: #eedc70; overflow-wrap: inherit !important; word-break: inherit !important;\">&#8220;img.jpg&#8221;<\/span>)<br \/><span style=\"font-size: inherit; line-height: inherit; color: #808080; overflow-wrap: inherit !important; word-break: inherit !important;\">#\u00a0\u7070\u5ea6<\/span><br \/>grey\u00a0=\u00a0cv2.cvtColor(img,\u00a0cv2.COLOR_BGR2GRAY)<br \/>invert\u00a0=\u00a0cv2.bitwise_not(grey)<br \/><span style=\"font-size: inherit; line-height: inherit; color: #808080; overflow-wrap: inherit !important; word-break: inherit !important;\">#\u00a0\u9ad8\u65af\u6ee4\u6ce2<\/span><br \/>blur_img\u00a0=\u00a0cv2.GaussianBlur(invert,\u00a0(<span style=\"font-size: inherit; line-height: inherit; color: #ae87fa; overflow-wrap: inherit !important; word-break: inherit !important;\">7<\/span>,\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #ae87fa; overflow-wrap: inherit !important; word-break: inherit !important;\">7<\/span>),\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #ae87fa; overflow-wrap: inherit !important; word-break: inherit !important;\">0<\/span>)<br \/>inverse_blur\u00a0=\u00a0cv2.bitwise_not(blur_img)<br \/>sketch_img\u00a0=\u00a0cv2.divide(grey,\u00a0inverse_blur,\u00a0scale=<span style=\"font-size: inherit; line-height: inherit; color: #ae87fa; overflow-wrap: inherit !important; word-break: inherit !important;\">256.0<\/span>)<br \/><span style=\"font-size: inherit; line-height: inherit; color: #808080; overflow-wrap: inherit !important; word-break: inherit !important;\">#\u00a0\u4fdd\u5b58<\/span><br \/>cv2.imwrite(<span style=\"font-size: inherit; line-height: inherit; color: #eedc70; overflow-wrap: inherit !important; word-break: inherit !important;\">&#8216;sketch.jpg&#8217;<\/span>,\u00a0sketch_img)<br \/>cv2.waitKey(<span style=\"font-size: inherit; line-height: inherit; color: #ae87fa; overflow-wrap: inherit !important; word-break: inherit !important;\">0<\/span>)<br \/>cv2.destroyAllWindows()<\/p>\n<\/section>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em; text-align: left;\">\u00a0<\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em; text-align: left;\"><span style=\"font-size: 15px;\">\u539f\u56fe\u5982\u4e0b\u3002<br \/><\/span><\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em;\">\u00a0<\/p>\n<section style=\"margin-right: 8px; margin-bottom: 0em; margin-left: 8px; white-space: normal; text-align: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img js_insertlocalimg\" style=\"box-sizing: border-box; border: 2px solid #000000;\" title=\"10\u4e2a\u6709\u8da3\u7684 Python \u9ad8\u7ea7\u811a\u672c\uff0c\u5efa\u8bae\u6536\u85cf\uff01\" src=\"http:\/\/www.zhushiyao.com\/wp-content\/uploads\/2022\/05\/4-1653369306.jpeg\" alt=\"10\u4e2a\u6709\u8da3\u7684 Python \u9ad8\u7ea7\u811a\u672c\uff0c\u5efa\u8bae\u6536\u85cf\uff01\" \/><\/section>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em; text-align: left;\">\u00a0<\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em; text-align: left;\"><span style=\"font-size: 15px;\">\u7d20\u63cf\u56fe\u5982\u4e0b\uff0c\u8fd8\u633a\u597d\u770b\u7684\u3002<br \/><\/span><\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em; text-align: left;\">\u00a0<\/p>\n<section style=\"margin-right: 8px; margin-bottom: 0em; margin-left: 8px; white-space: normal; text-align: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img js_insertlocalimg\" style=\"box-sizing: border-box; border: 2px solid #000000;\" title=\"10\u4e2a\u6709\u8da3\u7684 Python \u9ad8\u7ea7\u811a\u672c\uff0c\u5efa\u8bae\u6536\u85cf\uff01\" src=\"http:\/\/www.zhushiyao.com\/wp-content\/uploads\/2022\/05\/8-1653369306.jpeg\" alt=\"10\u4e2a\u6709\u8da3\u7684 Python \u9ad8\u7ea7\u811a\u672c\uff0c\u5efa\u8bae\u6536\u85cf\uff01\" \/><\/section>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em; text-align: left;\">\u00a0<\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em; text-align: left;\">\u00a0<\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em; text-align: left;\"><span style=\"letter-spacing: 0px; text-indent: 0em; font-size: 15px;\"><span style=\"letter-spacing: 0px; text-indent: 0em; background-color: #ffffff; color: #3c69ed; font-weight: bolder;\">\u258d7\u3001<\/span><span style=\"letter-spacing: 0px; text-indent: 0em; color: #3c69ed; font-weight: bolder;\">\u83b7\u53d6CPU\u6e29\u5ea6<\/span><\/span><\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em;\">\u00a0<\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em; text-align: left;\"><span style=\"font-size: 15px;\">\u6709\u4e86\u8fd9\u4e2aPython\u811a\u672c\uff0c\u4f60\u5c06\u4e0d\u9700\u8981\u4efb\u4f55\u8f6f\u4ef6\u6765\u4e86\u89e3CPU\u7684\u6e29\u5ea6\u3002<\/span><\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em;\">\u00a0<\/p>\n<section style=\"letter-spacing: 0px; white-space: normal; font-size: 16px; color: #3e3e3e; line-height: 1.6; font-family: 'Helvetica Neue', Helvetica, 'Hiragino Sans GB', 'Microsoft YaHei', Arial, sans-serif;\">\n<p style=\"margin-right: 8px; margin-left: 8px; padding: 0.5em; line-height: 15px; font-size: 11px; word-spacing: -3px; letter-spacing: 0px; font-family: Consolas, Inconsolata, Courier, monospace; border-radius: 0px; color: #a9b7c6; background: #282b2e; overflow-wrap: normal !important; word-break: normal !important; overflow: auto !important; display: -webkit-box !important; text-align: left;\"><span style=\"font-size: inherit; line-height: inherit; color: #808080; overflow-wrap: inherit !important; word-break: inherit !important;\">#\u00a0\u83b7\u53d6CPU\u6e29\u5ea6<\/span><br \/><span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">from<\/span>\u00a0time\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">import<\/span>\u00a0sleep<br \/><span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">from<\/span>\u00a0pyspectator.processor\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">import<\/span>\u00a0Cpu<br \/>cpu\u00a0=\u00a0Cpu(monitoring_latency=<span style=\"font-size: inherit; line-height: inherit; color: #ae87fa; overflow-wrap: inherit !important; word-break: inherit !important;\">1<\/span>)<br \/><span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">with<\/span>\u00a0cpu:<br \/>\u00a0\u00a0\u00a0\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">while<\/span>\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">True<\/span>:<br \/>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0print(<span style=\"font-size: inherit; line-height: inherit; color: #eedc70; overflow-wrap: inherit !important; word-break: inherit !important;\">f&#8217;Temp:\u00a0<span style=\"color: inherit; line-height: inherit; overflow-wrap: inherit !important; word-break: inherit !important;\">{cpu.temperature}<\/span>\u00a0\u00b0C&#8217;<\/span>)<br \/>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0sleep(<span style=\"font-size: inherit; line-height: inherit; color: #ae87fa; overflow-wrap: inherit !important; word-break: inherit !important;\">2<\/span>)<\/p>\n<\/section>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em; text-align: left;\">\u00a0<\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em; text-align: left;\">\u00a0<\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em; text-align: left;\"><span style=\"letter-spacing: 0px; text-indent: 0em; font-size: 15px;\"><span style=\"letter-spacing: 0px; text-indent: 0em; background-color: #ffffff; color: #3c69ed; font-weight: bolder;\">\u258d8\u3001<\/span><span style=\"letter-spacing: 0px; text-indent: 0em; color: #3c69ed; font-weight: bolder;\">\u63d0\u53d6PDF\u8868\u683c<\/span><\/span><\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em;\">\u00a0<\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em; text-align: left;\"><span style=\"font-size: 15px;\">\u6709\u7684\u65f6\u5019\uff0c\u6211\u4eec\u9700\u8981\u4ecePDF\u4e2d\u63d0\u53d6\u8868\u683c\u6570\u636e\u3002<\/span><\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em;\">\u00a0<\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em; text-align: left;\"><span style=\"font-size: 15px;\">\u7b2c\u4e00\u65f6\u95f4\u4f60\u53ef\u80fd\u4f1a\u5148\u60f3\u5230\u624b\u5de5\u6574\u7406\uff0c\u4f46\u662f\u5f53\u5de5\u4f5c\u91cf\u7279\u522b\u5927\uff0c\u624b\u5de5\u53ef\u80fd\u5c31\u6bd4\u8f83\u8d39\u52b2\u3002<br \/><\/span><\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em;\">\u00a0<\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em; text-align: left;\"><span style=\"font-size: 15px;\">\u7136\u540e\u4f60\u53ef\u80fd\u4f1a\u60f3\u5230\u4e00\u4e9b<\/span><span style=\"letter-spacing: 0px; text-indent: 0em; font-size: 15px;\">\u8f6f\u4ef6\u548c\u7f51\u7edc\u5de5\u5177\u6765\u63d0\u53d6 PDF \u8868\u683c\u3002<\/span><\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em;\">\u00a0<\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em; text-align: left;\"><span style=\"font-size: 15px;\">\u4e0b\u9762\u8fd9\u4e2a\u7b80\u5355\u7684\u811a\u672c\u5c06\u5e2e\u52a9\u4f60\u5728\u4e00\u79d2\u949f\u5185\u5b8c\u6210\u76f8\u540c\u7684\u64cd\u4f5c\u3002<\/span><\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em;\">\u00a0<\/p>\n<section style=\"letter-spacing: 0px; white-space: normal; font-size: 16px; color: #3e3e3e; line-height: 1.6; font-family: 'Helvetica Neue', Helvetica, 'Hiragino Sans GB', 'Microsoft YaHei', Arial, sans-serif;\">\n<p style=\"margin-right: 8px; margin-left: 8px; padding: 0.5em; line-height: 15px; font-size: 11px; word-spacing: -3px; letter-spacing: 0px; font-family: Consolas, Inconsolata, Courier, monospace; border-radius: 0px; color: #a9b7c6; background: #282b2e; overflow-wrap: normal !important; word-break: normal !important; overflow: auto !important; display: -webkit-box !important; text-align: left;\"><span style=\"font-size: inherit; line-height: inherit; color: #808080; overflow-wrap: inherit !important; word-break: inherit !important;\">#\u00a0\u65b9\u6cd5\u2460<\/span><br \/><span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">import<\/span>\u00a0camelot<br \/><br \/>tables\u00a0=\u00a0camelot.read_pdf(<span style=\"font-size: inherit; line-height: inherit; color: #eedc70; overflow-wrap: inherit !important; word-break: inherit !important;\">&#8220;tables.pdf&#8221;<\/span>)<br \/>print(tables)<br \/>tables.export(<span style=\"font-size: inherit; line-height: inherit; color: #eedc70; overflow-wrap: inherit !important; word-break: inherit !important;\">&#8220;extracted.csv&#8221;<\/span>,\u00a0f=<span style=\"font-size: inherit; line-height: inherit; color: #eedc70; overflow-wrap: inherit !important; word-break: inherit !important;\">&#8220;csv&#8221;<\/span>,\u00a0compress=<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">True<\/span>)<br \/><br \/><span style=\"font-size: inherit; line-height: inherit; color: #808080; overflow-wrap: inherit !important; word-break: inherit !important;\">#\u00a0\u65b9\u6cd5\u2461,\u00a0\u9700\u8981\u5b89\u88c5Java8<\/span><br \/><span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">import<\/span>\u00a0tabula<br \/><br \/>tabula.read_pdf(<span style=\"font-size: inherit; line-height: inherit; color: #eedc70; overflow-wrap: inherit !important; word-break: inherit !important;\">&#8220;tables.pdf&#8221;<\/span>,\u00a0pages=<span style=\"font-size: inherit; line-height: inherit; color: #eedc70; overflow-wrap: inherit !important; word-break: inherit !important;\">&#8220;all&#8221;<\/span>)<br \/>tabula.convert_into(<span style=\"font-size: inherit; line-height: inherit; color: #eedc70; overflow-wrap: inherit !important; word-break: inherit !important;\">&#8220;table.pdf&#8221;<\/span>,\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #eedc70; overflow-wrap: inherit !important; word-break: inherit !important;\">&#8220;output.csv&#8221;<\/span>,\u00a0output_format=<span style=\"font-size: inherit; line-height: inherit; color: #eedc70; overflow-wrap: inherit !important; word-break: inherit !important;\">&#8220;csv&#8221;<\/span>,\u00a0pages=<span style=\"font-size: inherit; line-height: inherit; color: #eedc70; overflow-wrap: inherit !important; word-break: inherit !important;\">&#8220;all&#8221;<\/span>)<\/p>\n<\/section>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em; text-align: left;\">\u00a0<\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em; text-align: left;\"><span style=\"font-size: 15px;\">PDF\u6587\u6863\u7684\u5185\u5bb9\u5982\u4e0b\uff0c\u5305\u542b\u4e86\u4e00\u4e2a\u8868\u683c\u3002<\/span><\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em;\">\u00a0<\/p>\n<section style=\"margin-right: 8px; margin-bottom: 0em; margin-left: 8px; white-space: normal; text-align: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img js_insertlocalimg\" style=\"box-sizing: border-box; width: 562px; border: 2px solid #000000;\" title=\"10\u4e2a\u6709\u8da3\u7684 Python \u9ad8\u7ea7\u811a\u672c\uff0c\u5efa\u8bae\u6536\u85cf\uff01\" src=\"http:\/\/www.zhushiyao.com\/wp-content\/uploads\/2022\/05\/8-1653369306-1.jpeg\" alt=\"10\u4e2a\u6709\u8da3\u7684 Python \u9ad8\u7ea7\u811a\u672c\uff0c\u5efa\u8bae\u6536\u85cf\uff01\" \/><\/section>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em; text-align: left;\">\u00a0<\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em; text-align: left;\"><span style=\"font-size: 15px;\">\u63d0\u53d6\u5230\u7684CSV\u6587\u4ef6\u5185\u5bb9\u5982\u4e0b\u3002<br \/><\/span><\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em;\">\u00a0<\/p>\n<section style=\"margin-right: 8px; margin-bottom: 0em; margin-left: 8px; white-space: normal; text-align: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img js_insertlocalimg\" style=\"box-sizing: border-box; border: 2px solid #000000;\" title=\"10\u4e2a\u6709\u8da3\u7684 Python \u9ad8\u7ea7\u811a\u672c\uff0c\u5efa\u8bae\u6536\u85cf\uff01\" src=\"http:\/\/www.zhushiyao.com\/wp-content\/uploads\/2022\/05\/3-1653369306-2.jpeg\" alt=\"10\u4e2a\u6709\u8da3\u7684 Python \u9ad8\u7ea7\u811a\u672c\uff0c\u5efa\u8bae\u6536\u85cf\uff01\" \/><\/section>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em;\">\u00a0<\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em;\">\u00a0<\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em; text-align: left;\"><span style=\"letter-spacing: 0px; text-indent: 0em; font-size: 15px;\"><span style=\"letter-spacing: 0px; text-indent: 0em; background-color: #ffffff; color: #3c69ed; font-weight: bolder;\">\u258d9\u3001<\/span><span style=\"letter-spacing: 0px; text-indent: 0em; color: #3c69ed; font-weight: bolder;\">\u622a\u56fe<\/span><\/span><\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em; text-align: left;\">\u00a0<\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em; text-align: left;\"><span style=\"font-size: 15px;\">\u8be5\u811a\u672c\u5c06\u7b80\u5355\u5730\u622a\u53d6\u5c4f\u5e55\u622a\u56fe\uff0c\u800c\u65e0\u9700\u4f7f\u7528\u4efb\u4f55\u5c4f\u5e55\u622a\u56fe\u8f6f\u4ef6\u3002<\/span><\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em;\">\u00a0<\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em; text-align: left;\"><span style=\"font-size: 15px;\">\u5728\u4e0b\u9762\u7684\u4ee3\u7801\u4e2d\uff0c\u7ed9\u5927\u5bb6\u5c55\u793a\u4e86\u4e24\u79cdPython\u622a\u53d6\u5c4f\u5e55\u622a\u56fe\u7684\u65b9\u6cd5\u3002<\/span><\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em;\">\u00a0<\/p>\n<section style=\"letter-spacing: 0px; white-space: normal; font-size: 16px; color: #3e3e3e; line-height: 1.6; font-family: 'Helvetica Neue', Helvetica, 'Hiragino Sans GB', 'Microsoft YaHei', Arial, sans-serif;\">\n<p style=\"margin-right: 8px; margin-left: 8px; padding: 0.5em; line-height: 15px; font-size: 11px; word-spacing: -3px; letter-spacing: 0px; font-family: Consolas, Inconsolata, Courier, monospace; border-radius: 0px; color: #a9b7c6; background: #282b2e; overflow-wrap: normal !important; word-break: normal !important; overflow: auto !important; display: -webkit-box !important; text-align: left;\"><span style=\"font-size: inherit; line-height: inherit; color: #808080; overflow-wrap: inherit !important; word-break: inherit !important;\">#\u00a0\u65b9\u6cd5\u2460<\/span><br \/><span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">from<\/span>\u00a0mss\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">import<\/span>\u00a0mss<br \/><span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">with<\/span>\u00a0mss()\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">as<\/span>\u00a0screenshot:<br \/>\u00a0\u00a0\u00a0\u00a0screenshot.shot(output=<span style=\"font-size: inherit; line-height: inherit; color: #eedc70; overflow-wrap: inherit !important; word-break: inherit !important;\">&#8216;scr.png&#8217;<\/span>)<br \/><br \/><span style=\"font-size: inherit; line-height: inherit; color: #808080; overflow-wrap: inherit !important; word-break: inherit !important;\">#\u00a0\u65b9\u6cd5\u2461<\/span><br \/><span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">import<\/span>\u00a0PIL.ImageGrab<br \/>scr\u00a0=\u00a0PIL.ImageGrab.grab()<br \/>scr.save(<span style=\"font-size: inherit; line-height: inherit; color: #eedc70; overflow-wrap: inherit !important; word-break: inherit !important;\">&#8220;scr.png&#8221;<\/span>)<\/p>\n<\/section>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em; text-align: left;\">\u00a0<\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em; text-align: left;\">\u00a0<\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em; text-align: left;\"><span style=\"letter-spacing: 0px; text-indent: 0em; font-size: 15px;\"><span style=\"letter-spacing: 0px; text-indent: 0em; background-color: #ffffff; color: #3c69ed; font-weight: bolder;\">\u258d10\u3001<\/span><span style=\"letter-spacing: 0px; text-indent: 0em; color: #3c69ed; font-weight: bolder;\">\u62fc\u5199\u68c0\u67e5\u5668<\/span><\/span><\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em;\">\u00a0<\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em; text-align: left;\"><span style=\"font-size: 15px;\">\u8fd9\u4e2aPython\u811a\u672c\u53ef\u4ee5\u8fdb\u884c\u62fc\u5199\u68c0\u67e5\uff0c\u5f53\u7136\u53ea\u5bf9\u82f1\u6587\u6709\u6548\uff0c\u6bd5\u7adf\u4e2d\u6587\u535a\u5927\u7cbe\u6df1\u5450\u3002<\/span><\/p>\n<p style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0px; text-indent: 0em; white-space: normal; line-height: 1.5em;\">\u00a0<\/p>\n<section style=\"letter-spacing: 0px; white-space: normal; font-size: 16px; color: #3e3e3e; line-height: 1.6; font-family: 'Helvetica Neue', Helvetica, 'Hiragino Sans GB', 'Microsoft YaHei', Arial, sans-serif;\">\n<p style=\"margin-right: 8px; margin-left: 8px; padding: 0.5em; line-height: 15px; font-size: 11px; word-spacing: -3px; letter-spacing: 0px; font-family: Consolas, Inconsolata, Courier, monospace; border-radius: 0px; color: #a9b7c6; background: #282b2e; overflow-wrap: normal !important; word-break: normal !important; overflow: auto !important; display: -webkit-box !important; text-align: left;\"><span style=\"font-size: inherit; line-height: inherit; color: #808080; overflow-wrap: inherit !important; word-break: inherit !important;\">#\u00a0\u62fc\u5199\u68c0\u67e5<\/span><br \/><span style=\"font-size: inherit; line-height: inherit; color: #808080; overflow-wrap: inherit !important; word-break: inherit !important;\">#\u00a0\u65b9\u6cd5\u2460<\/span><br \/><span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">import<\/span>\u00a0textblob<br \/><br \/>text\u00a0=\u00a0<span style=\"font-size: inherit; line-height: inherit; color: #eedc70; overflow-wrap: inherit !important; word-break: inherit !important;\">&#8220;mussage&#8221;<\/span><br \/>print(<span style=\"font-size: inherit; line-height: inherit; color: #eedc70; overflow-wrap: inherit !important; word-break: inherit !important;\">&#8220;original\u00a0text:\u00a0&#8220;<\/span>\u00a0+\u00a0str(text))<br \/><br \/>checked\u00a0=\u00a0textblob.TextBlob(text)<br \/>print(<span style=\"font-size: inherit; line-height: inherit; color: #eedc70; overflow-wrap: inherit !important; word-break: inherit !important;\">&#8220;corrected\u00a0text:\u00a0&#8220;<\/span>\u00a0+\u00a0str(checked.correct()))<br \/><br \/><span style=\"font-size: inherit; line-height: inherit; color: #808080; overflow-wrap: inherit !important; word-break: inherit !important;\">#\u00a0\u65b9\u6cd5\u2461<\/span><br \/><span style=\"font-size: inherit; line-height: inherit; color: #f82375; overflow-wrap: inherit !important; word-break: inherit !important;\">import<\/span>\u00a0autocorrect<br \/>spell\u00a0=\u00a0autocorrect.Speller(lang=<span style=\"font-size: inherit; line-height: inherit; color: #eedc70; overflow-wrap: inherit !important; word-break: inherit !important;\">&#8216;en&#8217;<\/span>)<br \/><br \/><span style=\"font-size: inherit; line-height: inherit; color: #808080; overflow-wrap: inherit !important; word-break: inherit !important;\">#\u00a0\u4ee5\u82f1\u8bed\u4e3a\u4f8b<\/span><br \/>print(spell(<span style=\"font-size: inherit; line-height: inherit; color: #eedc70; overflow-wrap: inherit !important; word-break: inherit !important;\">&#8216;cmputr&#8217;<\/span>))<br \/>print(spell(<span style=\"font-size: inherit; line-height: inherit; color: #eedc70; overflow-wrap: inherit !important; word-break: inherit !important;\">&#8216;watr&#8217;<\/span>))<br \/>print(spell(<span style=\"font-size: inherit; line-height: inherit; color: #eedc70; overflow-wrap: inherit !important; word-break: inherit !important;\">&#8216;survice&#8217;<\/span>))<\/p>\n<\/section>\n<section style=\"margin-right: 8px; margin-left: 8px; white-space: normal; letter-spacing: 1.5px; font-family: -apple-system-font, system-ui, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; widows: 1; word-spacing: 2px; caret-color: #333333; background-color: #ffffff; color: #5f5c5c; font-size: 14px; line-height: 1.5em; text-align: left;\"><\/section>\n<figure style=\"margin-bottom: 0em; outline: 0px; color: #222222; font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; letter-spacing: 0.544px; white-space: normal; background-color: #ffffff; text-align: center;\"><span style=\"outline: 0px; text-align: justify; font-size: 15px;\">&#8212; EOF &#8212;<\/span><\/figure>\n<section style=\"margin-bottom: 0em; outline: 0px; letter-spacing: 0.544px; white-space: normal; background-color: #ffffff; color: #353535; text-align: start; font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px;\">\n<section style=\"outline: 0px; font-size: 15px;\">\n<section style=\"outline: 0px; color: #000000; font-size: 16px; font-variant-numeric: normal; letter-spacing: 0.544px; text-align: center;\">\n<section style=\"outline: 0px; letter-spacing: 0.544px; color: #595959; font-size: 15px; text-align: left;\">\n<section style=\"outline: 0px;\">\n<section style=\"outline: 0px;\">\n<section style=\"outline: 0px;\">\n<section style=\"outline: 0px;\">\n<section style=\"outline: 0px;\">\n<section style=\"outline: 0px;\">\n<section style=\"outline: 0px;\">\n<section style=\"outline: 0px;\">\n<section style=\"outline: 0px;\">\n<section style=\"outline: 0px;\">\n<section style=\"outline: 0px;\">\n<section style=\"outline: 0px; font-variant-numeric: normal; letter-spacing: 0.544px; color: #3e3e3e; font-family: 'Helvetica Neue', Helvetica, 'Hiragino Sans GB', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; word-spacing: 2px; widows: 1; line-height: 27.2px;\">\n<section style=\"outline: 0px;\">\n<section style=\"margin-top: 10px; margin-bottom: 10px; outline: 0px; text-align: center;\">\n<section style=\"margin-top: -1em; padding: 20px 10px 10px; outline: 0px; background-color: #efefef; border: 1px solid #c0c8d1;\"><\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/div>\n\n\n<p>\u8f6c\u81ea\uff1ahttps:\/\/mp.weixin.qq.com\/s\/wuA5_ZV328E5bpSSR0XbiA<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6765\u81ea\u516c\u4f17\u53f7\uff1a\u6cd5\u7eb3\u65af\u7279 \u5927\u5bb6\u597d\uff0c\u6211\u662f\u5c0fF\u3002 \u00a0 \u5728\u65e5\u5e38\u7684\u5de5\u4f5c\u4e2d\uff0c\u6211\u4eec\u603b\u4f1a\u9762\u4e34\u5230\u5404\u5f0f\u5404\u6837\u7684\u95ee\u9898\u3002 \u00a0 \u5176\u4e2d\u4e0d\u5c11\u7684\u95ee &hellip; <a href=\"http:\/\/www.zhushiyao.com\/?p=104929\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">\u201c10\u4e2a\u6709\u8da3\u7684 Python \u9ad8\u7ea7\u811a\u672c\uff0c\u5efa\u8bae\u6536\u85cf\uff01\u201d<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[2],"tags":[8],"_links":{"self":[{"href":"http:\/\/www.zhushiyao.com\/index.php?rest_route=\/wp\/v2\/posts\/104929"}],"collection":[{"href":"http:\/\/www.zhushiyao.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.zhushiyao.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.zhushiyao.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.zhushiyao.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=104929"}],"version-history":[{"count":2,"href":"http:\/\/www.zhushiyao.com\/index.php?rest_route=\/wp\/v2\/posts\/104929\/revisions"}],"predecessor-version":[{"id":104939,"href":"http:\/\/www.zhushiyao.com\/index.php?rest_route=\/wp\/v2\/posts\/104929\/revisions\/104939"}],"wp:attachment":[{"href":"http:\/\/www.zhushiyao.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=104929"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.zhushiyao.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=104929"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.zhushiyao.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=104929"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}