{"id":2350,"date":"2023-07-22T16:05:32","date_gmt":"2023-07-22T16:05:32","guid":{"rendered":"https:\/\/statorials.org\/cn\/python-%e5%b8%95%e7%b4%af%e6%89%98%e5%9b%be\/"},"modified":"2023-07-22T16:05:32","modified_gmt":"2023-07-22T16:05:32","slug":"python-%e5%b8%95%e7%b4%af%e6%89%98%e5%9b%be","status":"publish","type":"post","link":"https:\/\/statorials.org\/cn\/python-%e5%b8%95%e7%b4%af%e6%89%98%e5%9b%be\/","title":{"rendered":"\u5982\u4f55\u5728 python \u4e2d\u521b\u5efa\u5e15\u7d2f\u6258\u56fe\uff08\u5206\u6b65\uff09"},"content":{"rendered":"<p><\/p>\n<hr>\n<p><span style=\"color: #000000;\"><strong>\u5e15\u7d2f\u6258\u56fe<\/strong>\u662f\u4e00\u79cd\u663e\u793a\u7c7b\u522b\u7684\u6709\u5e8f\u9891\u7387\u4ee5\u53ca\u7c7b\u522b\u7684\u7d2f\u79ef\u9891\u7387\u7684\u56fe\u8868\u3002<\/span> <\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-21324\" src=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/pareto_chart1.png\" alt=\"Python \u5e15\u7d2f\u6258\u56fe\" width=\"536\" height=\"374\" srcset=\"\" sizes=\"auto, \"><\/p>\n<p><span style=\"color: #000000;\">\u672c\u6559\u7a0b\u63d0\u4f9b\u4e86\u4f7f\u7528 Python \u521b\u5efa Pareto \u56fe\u7684\u5206\u6b65\u793a\u4f8b\u3002<\/span><\/p>\n<h3><span style=\"color: #000000;\"><strong>\u7b2c 1 \u6b65\uff1a\u521b\u5efa\u6570\u636e<\/strong><\/span><\/h3>\n<p><span style=\"color: #000000;\">\u5047\u8bbe\u6211\u4eec\u8fdb\u884c\u4e00\u9879\u8c03\u67e5\uff0c\u8981\u6c42 350 \u540d\u4e0d\u540c\u7684\u4eba\u5728\u54c1\u724c A\u3001B\u3001C\u3001D \u548c E \u4e4b\u95f4\u627e\u51fa\u4ed6\u4eec\u6700\u559c\u6b22\u7684\u8c37\u7269\u54c1\u724c\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u6211\u4eec\u53ef\u4ee5\u521b\u5efa\u4ee5\u4e0b pandas DataFrame \u6765\u4fdd\u5b58\u8c03\u67e5\u7ed3\u679c\uff1a<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008000;\">import<\/span> pandas <span style=\"color: #008000;\">as<\/span> pd\n\n<span style=\"color: #008080;\">#createDataFrame\n<\/span>df = pd. <span style=\"color: #3366ff;\">DataFrame<\/span> ({' <span style=\"color: #ff0000;\">count<\/span> ': [97, 140, 58, 6, 17, 32]})\ndf. <span style=\"color: #3366ff;\">index<\/span> = ['B', 'A', 'C', 'F', 'E', 'D']\n\n<span style=\"color: #008080;\">#sort DataFrame by count descending\n<\/span>df = df. <span style=\"color: #3366ff;\">sort_values<\/span> (by=' <span style=\"color: #ff0000;\">count<\/span> ', ascending= <span style=\"color: #008000;\">False<\/span> )\n\n<span style=\"color: #008080;\">#add column to display cumulative percentage\n<\/span>df[' <span style=\"color: #ff0000;\">cumperc<\/span> '] = df[' <span style=\"color: #ff0000;\">count<\/span> ']. <span style=\"color: #3366ff;\">cumsum<\/span> ()\/df[' <span style=\"color: #ff0000;\">count<\/span> ']. <span style=\"color: #3366ff;\">sum<\/span> ()*100\n\n<span style=\"color: #008080;\">#view DataFrame\n<\/span>df\n\n\tcount cumperc\nAt 140 40.000000\nB 97 67.714286\nC 58 84.285714\nD 32 93.428571\nE 17 98.285714\nF 6 100.000000<\/strong><\/pre>\n<h3><span style=\"color: #000000;\"><strong>\u7b2c 2 \u6b65\uff1a\u521b\u5efa\u5e15\u7d2f\u6258\u56fe<\/strong><\/span><\/h3>\n<p><span style=\"color: #000000;\"><span style=\"color: #000000;\">\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u4ee3\u7801\u6765\u521b\u5efa Pareto \u56fe\uff1a<\/span><\/span> <\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\"><span style=\"color: #000000;\"><span style=\"color: #008000;\">import<\/span> matplotlib. <span style=\"color: #3366ff;\">pyplot<\/span> <span style=\"color: #008000;\">as<\/span> plt\n<span style=\"color: #008000;\">from<\/span> matplotlib. <span style=\"color: #3366ff;\">ticker<\/span> <span style=\"color: #008000;\">import<\/span> PercentFormatter\n\n<span style=\"color: #008080;\">#define aesthetics for plot\n<\/span>color1 = ' <span style=\"color: #ff0000;\">steelblue<\/span> '\ncolor2 = ' <span style=\"color: #ff0000;\">red<\/span> '\nline_size = 4\n\n<span style=\"color: #008080;\">#create basic bar plot\n<\/span>fig, ax = plt. <span style=\"color: #3366ff;\">subplots<\/span> ()\nax. <span style=\"color: #3366ff;\">bar<\/span> (df. <span style=\"color: #3366ff;\">index<\/span> , df[' <span style=\"color: #ff0000;\">count<\/span> '], color=color1)\n\n<span style=\"color: #008080;\">#add cumulative percentage line to plot\n<\/span>ax2 = ax. <span style=\"color: #3366ff;\">twinx<\/span> ()\nax2. <span style=\"color: #3366ff;\">plot<\/span> ( <span style=\"color: #3366ff;\">df.index<\/span> , df[' <span style=\"color: #ff0000;\">cumperc<\/span> '], color=color2, marker=\" <span style=\"color: #ff0000;\">D<\/span> \", ms=line_size)\nax2. <span style=\"color: #3366ff;\">yaxis<\/span> . <span style=\"color: #3366ff;\">set_major_formatter<\/span> (PercentFormatter())\n\n<span style=\"color: #008080;\">#specify axis colors\n<\/span>ax. <span style=\"color: #3366ff;\">tick_params<\/span> (axis=' <span style=\"color: #ff0000;\">y<\/span> ', colors=color1)\nax2. <span style=\"color: #3366ff;\">tick_params<\/span> (axis=' <span style=\"color: #ff0000;\">y<\/span> ', colors=color2)<\/span>\n\n#display Pareto chart\n<span style=\"color: #000000;\">plt. <span style=\"color: #3366ff;\">show<\/span> ()\n<\/span><\/span><\/strong><\/pre>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-21324\" src=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/pareto_chart1.png\" alt=\"Python \u5e15\u7d2f\u6258\u56fe\" width=\"536\" height=\"374\" srcset=\"\" sizes=\"auto, \"><\/p>\n<p> <span style=\"color: #000000;\">X \u8f74\u663e\u793a\u4e0d\u540c\u54c1\u724c\u7684\u9891\u7387\u4ece\u6700\u9ad8\u5230\u6700\u4f4e\u7684\u987a\u5e8f\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u5de6y\u8f74\u663e\u793a\u6bcf\u4e2a\u54c1\u724c\u7684\u9891\u7387\uff0c\u53f3y\u8f74\u663e\u793a\u54c1\u724c\u7684\u7d2f\u79ef\u9891\u7387\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u4f8b\u5982\uff0c\u6211\u4eec\u53ef\u4ee5\u770b\u5230\uff1a<\/span><\/p>\n<ul>\n<li><span style=\"color: #000000;\">\u54c1\u724c A \u7ea6\u5360\u8c03\u67e5\u56de\u590d\u603b\u6570\u7684 40%\u3002<\/span><\/li>\n<li><span style=\"color: #000000;\">\u54c1\u724c A \u548c B \u7ea6\u5360\u8c03\u67e5\u56de\u590d\u603b\u6570\u7684 70%\u3002<\/span><\/li>\n<li><span style=\"color: #000000;\">\u54c1\u724c A\u3001B \u548c C \u7ea6\u5360\u8c03\u67e5\u56de\u590d\u603b\u6570\u7684 85%\u3002<\/span><\/li>\n<\/ul>\n<p><span style=\"color: #000000;\">\u7b49\u7b49\u3002<\/span><\/p>\n<h3><span style=\"color: #000000;\"><strong>\u7b2c 3 \u6b65\uff1a\u81ea\u5b9a\u4e49 Pareto \u56fe\uff08\u53ef\u9009\uff09<\/strong><\/span><\/h3>\n<p><span style=\"color: #000000;\">\u60a8\u53ef\u4ee5\u66f4\u6539\u6761\u5f62\u989c\u8272\u548c\u7d2f\u79ef\u767e\u5206\u6bd4\u7ebf\u7684\u5927\u5c0f\uff0c\u4ee5\u4f7f\u5e15\u7d2f\u6258\u56fe\u770b\u8d77\u6765\u50cf\u60a8\u60f3\u8981\u7684\u90a3\u6837\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u4f8b\u5982\uff0c\u6211\u4eec\u53ef\u4ee5\u5c06\u6761\u5f62\u66f4\u6539\u4e3a\u7c89\u7ea2\u8272\uff0c\u5c06\u7ebf\u6761\u66f4\u6539\u4e3a\u7d2b\u8272\u4e14\u7a0d\u7c97\uff1a<\/span> <\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span><span style=\"color: #000000;\"><span style=\"color: #008000;\">import<\/span> matplotlib. <span style=\"color: #3366ff;\">pyplot<\/span> <span style=\"color: #008000;\">as<\/span> plt\n<span style=\"color: #008000;\">from<\/span> matplotlib. <span style=\"color: #3366ff;\">ticker<\/span> <span style=\"color: #008000;\">import<\/span> PercentFormatter\n\n<span style=\"color: #008080;\">#define aesthetics for plot\n<\/span>color1 = ' <span style=\"color: #ff0000;\">pink<\/span> '\ncolor2 = '<\/span> <span><span style=\"color: #ff0000;\">purple<\/span> <span style=\"color: #000000;\">'\nline_size = 6\n\n<span style=\"color: #008080;\">#create basic bar plot\n<\/span>fig, ax = plt.<\/span> <span style=\"color: #3366ff;\">subplots<\/span> <span style=\"color: #000000;\">()\nax.<\/span> <span style=\"color: #3366ff;\">bar<\/span> <span style=\"color: #000000;\">(df.<\/span> <span style=\"color: #3366ff;\">index<\/span> <span style=\"color: #000000;\">, df['<\/span> <span style=\"color: #ff0000;\">count<\/span> <span style=\"color: #000000;\">'], color=color1)\n\n<span style=\"color: #008080;\">#add cumulative percentage line to plot\n<\/span>ax2 = ax.<\/span> <span style=\"color: #3366ff;\">twinx<\/span> <span style=\"color: #000000;\">()\nax2.<\/span> <span style=\"color: #3366ff;\">plot<\/span> <span style=\"color: #000000;\">(df.index<\/span> <span style=\"color: #000000;\">, df['<\/span> <span style=\"color: #ff0000;\">cumperc<\/span> <span style=\"color: #000000;\">'], color=color2, marker=\"<\/span> <span style=\"color: #ff0000;\">D<\/span> <span style=\"color: #000000;\">\", ms=line_size<\/span> <span style=\"color: #3366ff;\">)<\/span><span style=\"color: #000000;\">\nax2.<\/span> <span style=\"color: #3366ff;\">yaxis<\/span> <span style=\"color: #000000;\">.<\/span> <span style=\"color: #3366ff;\">set_major_formatter<\/span> <span style=\"color: #000000;\">(PercentFormatter())\n\n<span style=\"color: #008080;\">#specify axis colors\n<\/span>ax.<\/span> <span style=\"color: #3366ff;\">tick_params<\/span> <span style=\"color: #000000;\">(axis='<\/span> <span style=\"color: #ff0000;\">y<\/span> <span style=\"color: #000000;\">', colors=color1)\nax2.<\/span> <span style=\"color: #3366ff;\">tick_params<\/span> <span style=\"color: #000000;\">(axis='<\/span> <span style=\"color: #ff0000;\">y<\/span> <span style=\"color: #000000;\">', colors=color2)<\/span><\/span><span style=\"color: #008080;\">\n\n#display Pareto chart\n<\/span><span style=\"color: #000000;\">plt. <span style=\"color: #3366ff;\">show<\/span> ()<\/span><\/span><\/strong> <\/pre>\n<p><img decoding=\"async\" loading=\"lazy\" class=\" wp-image-21325 aligncenter\" src=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/pareto_chart2.png\" alt=\"\" width=\"535\" height=\"372\" srcset=\"\" sizes=\"auto, \"><\/p>\n<h3><span style=\"color: #000000;\"><strong>\u5176\u4ed6\u8d44\u6e90<\/strong><\/span><\/h3>\n<p><span style=\"color: #000000;\">\u4ee5\u4e0b\u6559\u7a0b\u4ecb\u7ecd\u4e86\u5982\u4f55\u5728 Python \u4e2d\u521b\u5efa\u5176\u4ed6\u5e38\u89c1\u53ef\u89c6\u5316\u6548\u679c\uff1a<\/span><\/p>\n<p><a href=\"https:\/\/statorials.org\/cn\/\u949f\u5f62\u66f2\u7ebf\u87d2\u86c7\/\" target=\"_blank\" rel=\"noopener\">\u5982\u4f55\u7528 Python \u521b\u5efa\u949f\u5f62\u66f2\u7ebf<\/a><br \/><a href=\"https:\/\/statorials.org\/cn\/\u87d2\u86c7\u5f39\u5934\/\" target=\"_blank\" rel=\"noopener\">\u5982\u4f55\u7528 Python \u521b\u5efa Ogive \u56fe\u8868<\/a><br \/><a href=\"https:\/\/statorials.org\/cn\/\u830e\u53f6\u56fe-python\/\" target=\"_blank\" rel=\"noopener\">\u5982\u4f55\u7528 Python \u521b\u5efa\u830e\u53f6\u56fe<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5e15\u7d2f\u6258\u56fe\u662f\u4e00\u79cd\u663e\u793a\u7c7b\u522b\u7684\u6709\u5e8f\u9891\u7387\u4ee5\u53ca\u7c7b\u522b\u7684\u7d2f\u79ef\u9891\u7387\u7684\u56fe\u8868\u3002 \u672c\u6559\u7a0b\u63d0\u4f9b\u4e86\u4f7f\u7528 Python \u521b\u5efa Pareto [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-2350","post","type-post","status-publish","format-standard","hentry","category-11"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5982\u4f55\u5728 Python \u4e2d\u521b\u5efa\u5e15\u7d2f\u6258\u56fe\uff08\u4e00\u6b65\u4e00\u6b65\uff09 - Statorials<\/title>\n<meta name=\"description\" content=\"\u672c\u6559\u7a0b\u901a\u8fc7\u5206\u6b65\u793a\u4f8b\u4ecb\u7ecd\u4e86\u5982\u4f55\u5728 Python \u4e2d\u521b\u5efa\u5e15\u7d2f\u6258\u56fe\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/statorials.org\/cn\/python-\u5e15\u7d2f\u6258\u56fe\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5982\u4f55\u5728 Python \u4e2d\u521b\u5efa\u5e15\u7d2f\u6258\u56fe\uff08\u4e00\u6b65\u4e00\u6b65\uff09 - Statorials\" \/>\n<meta property=\"og:description\" content=\"\u672c\u6559\u7a0b\u901a\u8fc7\u5206\u6b65\u793a\u4f8b\u4ecb\u7ecd\u4e86\u5982\u4f55\u5728 Python \u4e2d\u521b\u5efa\u5e15\u7d2f\u6258\u56fe\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/statorials.org\/cn\/python-\u5e15\u7d2f\u6258\u56fe\/\" \/>\n<meta property=\"og:site_name\" content=\"Statorials\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-22T16:05:32+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/pareto_chart1.png\" \/>\n<meta name=\"author\" content=\"\u672c\u6770\u660e\u00b7\u5b89\u5fb7\u68ee\u535a\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u672c\u6770\u660e\u00b7\u5b89\u5fb7\u68ee\u535a\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/statorials.org\/cn\/python-%e5%b8%95%e7%b4%af%e6%89%98%e5%9b%be\/\",\"url\":\"https:\/\/statorials.org\/cn\/python-%e5%b8%95%e7%b4%af%e6%89%98%e5%9b%be\/\",\"name\":\"\u5982\u4f55\u5728 Python \u4e2d\u521b\u5efa\u5e15\u7d2f\u6258\u56fe\uff08\u4e00\u6b65\u4e00\u6b65\uff09 - Statorials\",\"isPartOf\":{\"@id\":\"https:\/\/statorials.org\/cn\/#website\"},\"datePublished\":\"2023-07-22T16:05:32+00:00\",\"dateModified\":\"2023-07-22T16:05:32+00:00\",\"author\":{\"@id\":\"https:\/\/statorials.org\/cn\/#\/schema\/person\/124e4e5b7c9f8dc0f1f95cc8c1db3261\"},\"description\":\"\u672c\u6559\u7a0b\u901a\u8fc7\u5206\u6b65\u793a\u4f8b\u4ecb\u7ecd\u4e86\u5982\u4f55\u5728 Python \u4e2d\u521b\u5efa\u5e15\u7d2f\u6258\u56fe\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/statorials.org\/cn\/python-%e5%b8%95%e7%b4%af%e6%89%98%e5%9b%be\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/statorials.org\/cn\/python-%e5%b8%95%e7%b4%af%e6%89%98%e5%9b%be\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/statorials.org\/cn\/python-%e5%b8%95%e7%b4%af%e6%89%98%e5%9b%be\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u5bb6\",\"item\":\"https:\/\/statorials.org\/cn\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5982\u4f55\u5728 python \u4e2d\u521b\u5efa\u5e15\u7d2f\u6258\u56fe\uff08\u5206\u6b65\uff09\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/statorials.org\/cn\/#website\",\"url\":\"https:\/\/statorials.org\/cn\/\",\"name\":\"Statorials\",\"description\":\"\u60a8\u7684\u7edf\u8ba1\u7d20\u517b\u6307\u5357\uff01\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/statorials.org\/cn\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/statorials.org\/cn\/#\/schema\/person\/124e4e5b7c9f8dc0f1f95cc8c1db3261\",\"name\":\"\u672c\u6770\u660e\u00b7\u5b89\u5fb7\u68ee\u535a\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/statorials.org\/cn\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/statorials.org\/cn\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg\",\"contentUrl\":\"https:\/\/statorials.org\/cn\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg\",\"caption\":\"\u672c\u6770\u660e\u00b7\u5b89\u5fb7\u68ee\u535a\"},\"description\":\"\u5927\u5bb6\u597d\uff0c\u6211\u662f\u672c\u6770\u660e\uff0c\u4e00\u4f4d\u9000\u4f11\u7684\u7edf\u8ba1\u5b66\u6559\u6388\uff0c\u540e\u6765\u6210\u4e3a Statorials \u7684\u70ed\u5fc3\u6559\u5e08\u3002 \u51ed\u501f\u5728\u7edf\u8ba1\u9886\u57df\u7684\u4e30\u5bcc\u7ecf\u9a8c\u548c\u4e13\u4e1a\u77e5\u8bc6\uff0c\u6211\u6e34\u671b\u5206\u4eab\u6211\u7684\u77e5\u8bc6\uff0c\u901a\u8fc7 Statorials \u589e\u5f3a\u5b66\u751f\u7684\u80fd\u529b\u3002\u4e86\u89e3\u66f4\u591a\",\"sameAs\":[\"https:\/\/statorials.org\/cn\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u5982\u4f55\u5728 Python \u4e2d\u521b\u5efa\u5e15\u7d2f\u6258\u56fe\uff08\u4e00\u6b65\u4e00\u6b65\uff09 - Statorials","description":"\u672c\u6559\u7a0b\u901a\u8fc7\u5206\u6b65\u793a\u4f8b\u4ecb\u7ecd\u4e86\u5982\u4f55\u5728 Python \u4e2d\u521b\u5efa\u5e15\u7d2f\u6258\u56fe\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/statorials.org\/cn\/python-\u5e15\u7d2f\u6258\u56fe\/","og_locale":"zh_CN","og_type":"article","og_title":"\u5982\u4f55\u5728 Python \u4e2d\u521b\u5efa\u5e15\u7d2f\u6258\u56fe\uff08\u4e00\u6b65\u4e00\u6b65\uff09 - Statorials","og_description":"\u672c\u6559\u7a0b\u901a\u8fc7\u5206\u6b65\u793a\u4f8b\u4ecb\u7ecd\u4e86\u5982\u4f55\u5728 Python \u4e2d\u521b\u5efa\u5e15\u7d2f\u6258\u56fe\u3002","og_url":"https:\/\/statorials.org\/cn\/python-\u5e15\u7d2f\u6258\u56fe\/","og_site_name":"Statorials","article_published_time":"2023-07-22T16:05:32+00:00","og_image":[{"url":"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/pareto_chart1.png"}],"author":"\u672c\u6770\u660e\u00b7\u5b89\u5fb7\u68ee\u535a","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u672c\u6770\u660e\u00b7\u5b89\u5fb7\u68ee\u535a","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/statorials.org\/cn\/python-%e5%b8%95%e7%b4%af%e6%89%98%e5%9b%be\/","url":"https:\/\/statorials.org\/cn\/python-%e5%b8%95%e7%b4%af%e6%89%98%e5%9b%be\/","name":"\u5982\u4f55\u5728 Python \u4e2d\u521b\u5efa\u5e15\u7d2f\u6258\u56fe\uff08\u4e00\u6b65\u4e00\u6b65\uff09 - Statorials","isPartOf":{"@id":"https:\/\/statorials.org\/cn\/#website"},"datePublished":"2023-07-22T16:05:32+00:00","dateModified":"2023-07-22T16:05:32+00:00","author":{"@id":"https:\/\/statorials.org\/cn\/#\/schema\/person\/124e4e5b7c9f8dc0f1f95cc8c1db3261"},"description":"\u672c\u6559\u7a0b\u901a\u8fc7\u5206\u6b65\u793a\u4f8b\u4ecb\u7ecd\u4e86\u5982\u4f55\u5728 Python \u4e2d\u521b\u5efa\u5e15\u7d2f\u6258\u56fe\u3002","breadcrumb":{"@id":"https:\/\/statorials.org\/cn\/python-%e5%b8%95%e7%b4%af%e6%89%98%e5%9b%be\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/statorials.org\/cn\/python-%e5%b8%95%e7%b4%af%e6%89%98%e5%9b%be\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/statorials.org\/cn\/python-%e5%b8%95%e7%b4%af%e6%89%98%e5%9b%be\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u5bb6","item":"https:\/\/statorials.org\/cn\/"},{"@type":"ListItem","position":2,"name":"\u5982\u4f55\u5728 python \u4e2d\u521b\u5efa\u5e15\u7d2f\u6258\u56fe\uff08\u5206\u6b65\uff09"}]},{"@type":"WebSite","@id":"https:\/\/statorials.org\/cn\/#website","url":"https:\/\/statorials.org\/cn\/","name":"Statorials","description":"\u60a8\u7684\u7edf\u8ba1\u7d20\u517b\u6307\u5357\uff01","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/statorials.org\/cn\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/statorials.org\/cn\/#\/schema\/person\/124e4e5b7c9f8dc0f1f95cc8c1db3261","name":"\u672c\u6770\u660e\u00b7\u5b89\u5fb7\u68ee\u535a","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/statorials.org\/cn\/#\/schema\/person\/image\/","url":"https:\/\/statorials.org\/cn\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg","contentUrl":"https:\/\/statorials.org\/cn\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg","caption":"\u672c\u6770\u660e\u00b7\u5b89\u5fb7\u68ee\u535a"},"description":"\u5927\u5bb6\u597d\uff0c\u6211\u662f\u672c\u6770\u660e\uff0c\u4e00\u4f4d\u9000\u4f11\u7684\u7edf\u8ba1\u5b66\u6559\u6388\uff0c\u540e\u6765\u6210\u4e3a Statorials \u7684\u70ed\u5fc3\u6559\u5e08\u3002 \u51ed\u501f\u5728\u7edf\u8ba1\u9886\u57df\u7684\u4e30\u5bcc\u7ecf\u9a8c\u548c\u4e13\u4e1a\u77e5\u8bc6\uff0c\u6211\u6e34\u671b\u5206\u4eab\u6211\u7684\u77e5\u8bc6\uff0c\u901a\u8fc7 Statorials \u589e\u5f3a\u5b66\u751f\u7684\u80fd\u529b\u3002\u4e86\u89e3\u66f4\u591a","sameAs":["https:\/\/statorials.org\/cn"]}]}},"yoast_meta":{"yoast_wpseo_title":"","yoast_wpseo_metadesc":"","yoast_wpseo_canonical":""},"_links":{"self":[{"href":"https:\/\/statorials.org\/cn\/wp-json\/wp\/v2\/posts\/2350","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/statorials.org\/cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/statorials.org\/cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/statorials.org\/cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/statorials.org\/cn\/wp-json\/wp\/v2\/comments?post=2350"}],"version-history":[{"count":0,"href":"https:\/\/statorials.org\/cn\/wp-json\/wp\/v2\/posts\/2350\/revisions"}],"wp:attachment":[{"href":"https:\/\/statorials.org\/cn\/wp-json\/wp\/v2\/media?parent=2350"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/statorials.org\/cn\/wp-json\/wp\/v2\/categories?post=2350"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/statorials.org\/cn\/wp-json\/wp\/v2\/tags?post=2350"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}