{"id":2470,"date":"2023-07-22T03:25:54","date_gmt":"2023-07-22T03:25:54","guid":{"rendered":"https:\/\/statorials.org\/cn\/python%e4%b8%ad%e7%9a%84%e7%99%bd%e8%89%b2%e6%b5%8b%e8%af%95\/"},"modified":"2023-07-22T03:25:54","modified_gmt":"2023-07-22T03:25:54","slug":"python%e4%b8%ad%e7%9a%84%e7%99%bd%e8%89%b2%e6%b5%8b%e8%af%95","status":"publish","type":"post","link":"https:\/\/statorials.org\/cn\/python%e4%b8%ad%e7%9a%84%e7%99%bd%e8%89%b2%e6%b5%8b%e8%af%95\/","title":{"rendered":"\u5982\u4f55\u5728 python \u4e2d\u6267\u884c\u6000\u7279\u6d4b\u8bd5\uff08\u4e00\u6b65\u4e00\u6b65\uff09"},"content":{"rendered":"<p><\/p>\n<hr>\n<p><span style=\"color: #000000;\"><strong>\u6000\u7279\u68c0\u9a8c<\/strong>\u7528\u4e8e\u786e\u5b9a\u56de\u5f52\u6a21\u578b\u4e2d\u662f\u5426\u5b58\u5728<a href=\"https:\/\/statorials.org\/cn\/\u5f02\u65b9\u5dee\u56de\u5f52\/\" target=\"_blank\" rel=\"noopener\">\u5f02\u65b9\u5dee\u6027<\/a>\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u5f02\u65b9\u5dee\u662f\u6307<a href=\"https:\/\/statorials.org\/cn\/\u6b8b\u7559\u7269\/\" target=\"_blank\" rel=\"noopener\">\u6b8b\u5dee<\/a>\u5728<a href=\"https:\/\/statorials.org\/cn\/\u53d8\u91cf\u89e3\u91ca\u6027\u53cd\u5e94\/\" target=\"_blank\" rel=\"noopener\">\u54cd\u5e94\u53d8\u91cf<\/a>\u7684\u4e0d\u540c\u6c34\u5e73\u4e0a\u7684\u5206\u6563\u4e0d\u5747\u5300\uff0c\u8fd9\u8fdd\u53cd\u4e86\u6b8b\u5dee\u5728\u54cd\u5e94\u53d8\u91cf\u7684\u6bcf\u4e2a\u6c34\u5e73\u4e0a\u5747\u5300\u5206\u6563\u7684<a href=\"https:\/\/statorials.org\/cn\/\u7ebf\u6027\u56de\u5f52\u5047\u8bbe\/\" target=\"_blank\" rel=\"noopener\">\u5047\u8bbe<\/a>\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u4ee5\u4e0b\u5206\u6b65\u793a\u4f8b\u6f14\u793a\u5982\u4f55\u5728 Python \u4e2d\u6267\u884c White \u68c0\u9a8c\uff0c\u4ee5\u786e\u5b9a\u5f02\u65b9\u5dee\u6027\u662f\u5426\u662f\u7ed9\u5b9a\u56de\u5f52\u6a21\u578b\u4e2d\u7684\u95ee\u9898\u3002<\/span><\/p>\n<h3><strong>\u7b2c 1 \u6b65\uff1a\u52a0\u8f7d\u6570\u636e<\/strong><\/h3>\n<p><span style=\"color: #000000;\">\u5728\u6b64\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u5c06\u4f7f\u7528<strong>mtcars<\/strong>\u6570\u636e\u96c6\u62df\u5408<a href=\"https:\/\/statorials.org\/cn\/\u591a\u5143\u7ebf\u6027\u56de\u5f52-1\/\" target=\"_blank\" rel=\"noopener\">\u591a\u5143\u7ebf\u6027\u56de\u5f52\u6a21\u578b<\/a>\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u4ee5\u4e0b\u4ee3\u7801\u663e\u793a\u4e86\u5982\u4f55\u5c06\u6b64\u6570\u636e\u96c6\u52a0\u8f7d\u5230 pandas DataFrame \u4e2d\uff1a<\/span><\/p>\n<pre style=\"background-color: #e5e5e5; font-size: 15px;\"> <strong><span style=\"color: #008000;\">from<\/span> sklearn. <span style=\"color: #3366ff;\">linear_model<\/span> <span style=\"color: #008000;\">import<\/span> LinearRegression\n<span style=\"color: #008000;\">from<\/span> statsmodels. <span style=\"color: #3366ff;\">stats<\/span> . <span style=\"color: #3366ff;\">diagnostic<\/span> <span style=\"color: #008000;\">import<\/span> het_white\n<span style=\"color: #008000;\">import<\/span> statsmodels. <span style=\"color: #3366ff;\">api<\/span> <span style=\"color: #008000;\">as<\/span> sm\n<span style=\"color: #008000;\">import<\/span> pandas <span style=\"color: #008000;\">as<\/span> pd\n\n<span style=\"color: #008080;\">#define URL where dataset is located\n<\/span>url = \"https:\/\/raw.githubusercontent.com\/Statorials\/Python-Guides\/main\/mtcars.csv\"\n\n<span style=\"color: #008080;\">#read in data\n<\/span>data = pd. <span style=\"color: #3366ff;\">read_csv<\/span> (url)\n\n<span style=\"color: #008080;\">#view summary of data\n<\/span>data. <span style=\"color: #3366ff;\">info<\/span> ()\n\n&lt;class 'pandas.core.frame.DataFrame'&gt;\nRangeIndex: 32 entries, 0 to 31\nData columns (total 12 columns):\n # Column Non-Null Count Dtype  \n--- ------ -------------- -----  \n 0 model 32 non-null object \n 1 mpg 32 non-null float64\n 2 cyl 32 non-null int64  \n 3 disp 32 non-null float64\n 4 hp 32 non-null int64  \n 5 drat 32 non-null float64\n 6 wt 32 non-null float64\n 7 qsec 32 non-null float64\n 8 vs 32 non-null int64  \n 9 am 32 non-null int64  \n 10 gear 32 non-null int64  \n 11 carb 32 non-null int64  \ndtypes: float64(5), int64(6), object(1)\n<\/strong><\/pre>\n<h3><strong>\u6b65\u9aa4 2\uff1a\u62df\u5408\u56de\u5f52\u6a21\u578b<\/strong><\/h3>\n<p><span style=\"color: #000000;\">\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u4f7f\u7528<strong>mpg<\/strong>\u4f5c\u4e3a\u54cd\u5e94\u53d8\u91cf\uff0c\u4f7f\u7528<strong>disp<\/strong>\u548c<strong>hp<\/strong>\u4f5c\u4e3a\u4e24\u4e2a\u9884\u6d4b\u53d8\u91cf\u6765\u62df\u5408\u56de\u5f52\u6a21\u578b\uff1a<\/span><\/p>\n<pre style=\"background-color: #e5e5e5; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#define response variable\n<\/span>y = data[' <span style=\"color: #ff0000;\">mpg<\/span> ']\n\n<span style=\"color: #008080;\">#define predictor variables\n<\/span>x = data[[' <span style=\"color: #ff0000;\">disp<\/span> ', ' <span style=\"color: #ff0000;\">hp<\/span> ']]\n\n<span style=\"color: #008080;\">#add constant to predictor variables\n<\/span>x = sm. <span style=\"color: #3366ff;\">add_constant<\/span> (x)\n\n<span style=\"color: #008080;\">#fit regression model\n<\/span>model = sm. <span style=\"color: #3366ff;\">OLS<\/span> (y,x). <span style=\"color: #3366ff;\">fit<\/span> ()<\/strong><\/pre>\n<h3><span style=\"color: #000000;\"><strong>\u7b2c 3 \u6b65\uff1a\u6267\u884c\u6000\u7279\u6d4b\u8bd5<\/strong><\/span><\/h3>\n<p><span style=\"color: #000000;\">\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u4f7f\u7528 statsmodels \u5305\u4e2d\u7684<a href=\"https:\/\/www.statsmodels.org\/dev\/generated\/statsmodels.stats.diagnostic.het_white.html\" target=\"_blank\" rel=\"noopener\">het_white()<\/a>\u51fd\u6570\u6267\u884c White \u68c0\u9a8c\uff0c\u4ee5\u786e\u5b9a\u56de\u5f52\u6a21\u578b\u4e2d\u662f\u5426\u5b58\u5728\u5f02\u65b9\u5dee\uff1a<\/span><\/p>\n<pre style=\"background-color: #e5e5e5; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#perform White's test\n<\/span>white_test = het_white(model. <span style=\"color: #3366ff;\">resid<\/span> , model. <span style=\"color: #3366ff;\">model<\/span> . <span style=\"color: #3366ff;\">exog<\/span> )\n\n<span style=\"color: #008080;\">#define labels to use for output of White's test\n<\/span>labels = ['Test Statistic', 'Test Statistic p-value', 'F-Statistic', 'F-Test p-value']\n\n<span style=\"color: #008080;\">#print results of White's test\n<span style=\"color: #008000;\">print<\/span><\/span> (dict(zip(labels, white_test)))\n\n{'Test Statistic': 7.076620330416624, 'Test Statistic p-value': 0.21500404394263936,\n 'F-Statistic': 1.4764621093131864, 'F-Test p-value': 0.23147065943879694}<\/strong><\/pre>\n<p><span style=\"color: #000000;\">\u4ee5\u4e0b\u662f\u5982\u4f55\u89e3\u91ca\u7ed3\u679c\uff1a<\/span><\/p>\n<ul>\n<li><span style=\"color: #000000;\">\u68c0\u9a8c\u7edf\u8ba1\u91cf\u4e3a<sup>X2<\/sup> = <strong>7.0766<\/strong> \u3002<\/span><\/li>\n<li><span style=\"color: #000000;\">\u76f8\u5e94\u7684 p \u503c\u4e3a<strong>0.215<\/strong> \u3002<\/span><\/li>\n<\/ul>\n<p><span style=\"color: #000000;\">\u6000\u7279\u68c0\u9a8c\u4f7f\u7528\u4ee5\u4e0b\u539f\u5047\u8bbe\u548c\u5907\u62e9\u5047\u8bbe\uff1a<\/span><\/p>\n<ul>\n<li> <span style=\"color: #000000;\"><strong>Null (H <sub>0<\/sub> )<\/strong> \uff1a\u5b58\u5728\u540c\u65b9\u5dee\uff08\u6b8b\u5dee\u4e5f\u5206\u6563\uff09<\/span><\/li>\n<li><span style=\"color: #000000;\"><strong>\u66ff\u4ee3\u65b9\u6848 ( <sub>HA<\/sub> )\uff1a<\/strong>\u5b58\u5728\u5f02\u65b9\u5dee\u6027\uff08\u6b8b\u5dee\u5206\u5e03\u4e0d\u5747\u5300\uff09<\/span><\/li>\n<\/ul>\n<p><span style=\"color: #000000;\">\u7531\u4e8e p \u503c\u4e0d\u5c0f\u4e8e 0.05\uff0c\u56e0\u6b64\u6211\u4eec\u65e0\u6cd5\u62d2\u7edd\u539f\u5047\u8bbe\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u8fd9\u610f\u5473\u7740\u6211\u4eec\u6ca1\u6709\u8db3\u591f\u7684\u8bc1\u636e\u6765\u8bc1\u660e\u56de\u5f52\u6a21\u578b\u4e2d\u5b58\u5728\u5f02\u65b9\u5dee\u6027\u3002<\/span><\/p>\n<h3><strong>\u63a5\u4e0b\u6765\u505a\u4ec0\u4e48<\/strong><\/h3>\n<p><span style=\"color: #000000;\">\u5982\u679c\u60a8\u672a\u80fd\u62d2\u7edd\u6000\u7279\u68c0\u9a8c\u7684\u539f\u5047\u8bbe\uff0c\u5219\u4e0d\u5b58\u5728\u5f02\u65b9\u5dee\uff0c\u60a8\u53ef\u4ee5\u7ee7\u7eed\u89e3\u91ca\u539f\u59cb\u56de\u5f52\u7684\u7ed3\u679c\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u4f46\u662f\uff0c\u5982\u679c\u60a8\u62d2\u7edd\u539f\u5047\u8bbe\uff0c\u5219\u610f\u5473\u7740\u5b58\u5728\u5f02\u65b9\u5dee\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u56de\u5f52\u8f93\u51fa\u8868\u4e2d\u663e\u793a\u7684\u6807\u51c6\u8bef\u5dee\u53ef\u80fd\u4e0d\u53ef\u9760\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u6709\u4e24\u79cd\u5e38\u89c1\u65b9\u6cd5\u53ef\u4ee5\u89e3\u51b3\u6b64\u95ee\u9898\uff1a<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>1. \u53d8\u6362\u54cd\u5e94\u53d8\u91cf\u3002<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\">\u60a8\u53ef\u4ee5\u5c1d\u8bd5\u5bf9\u54cd\u5e94\u53d8\u91cf\u6267\u884c\u8f6c\u6362\uff0c\u4f8b\u5982\u53d6\u54cd\u5e94\u53d8\u91cf\u7684<a href=\"https:\/\/statorials.org\/cn\/\u5728python\u4e2d\u8f6c\u6362\u6570\u636e\/\" target=\"_blank\" rel=\"noopener\">\u5bf9\u6570\u3001\u5e73\u65b9\u6839\u6216\u7acb\u65b9\u6839<\/a>\u3002\u8fd9\u901a\u5e38\u4f1a\u5bfc\u81f4\u5f02\u65b9\u5dee\u6d88\u5931\u3002<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>2. \u4f7f\u7528\u52a0\u6743\u56de\u5f52\u3002<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\">\u52a0\u6743\u56de\u5f52\u6839\u636e\u62df\u5408\u503c\u7684\u65b9\u5dee\u4e3a\u6bcf\u4e2a\u6570\u636e\u70b9\u5206\u914d\u6743\u91cd\u3002\u672c\u8d28\u4e0a\uff0c\u8fd9\u4e3a\u5177\u6709\u8f83\u9ad8\u65b9\u5dee\u7684\u6570\u636e\u70b9\u8d4b\u4e88\u4e86\u8f83\u4f4e\u7684\u6743\u91cd\uff0c\u4ece\u800c\u51cf\u5c11\u4e86\u5b83\u4eec\u7684\u6b8b\u5dee\u5e73\u65b9\u3002\u5f53\u4f7f\u7528\u9002\u5f53\u7684\u6743\u91cd\u65f6\uff0c\u53ef\u4ee5\u6d88\u9664\u5f02\u65b9\u5dee\u95ee\u9898\u3002<\/span><\/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\u63d0\u4f9b\u4e86\u6709\u5173 Python \u4e2d\u7ebf\u6027\u56de\u5f52\u7684\u66f4\u591a\u4fe1\u606f\uff1a<\/span><\/p>\n<p> <a href=\"https:\/\/statorials.org\/cn\/\u7ebf\u6027\u56de\u5f52-python\/\" target=\"_blank\" rel=\"noopener\">Python \u7ebf\u6027\u56de\u5f52\u5b8c\u6574\u6307\u5357<\/a><br \/><a href=\"https:\/\/statorials.org\/cn\/python-\u6b8b\u5dee\u56fe\/\" target=\"_blank\" rel=\"noopener\">\u5982\u4f55\u5728 Python \u4e2d\u521b\u5efa\u6b8b\u5dee\u56fe<\/a><br \/><a href=\"https:\/\/statorials.org\/cn\/\u5982\u4f55\u5728python\u4e2d\u8ba1\u7b97vive\/\" target=\"_blank\" rel=\"noopener\">\u5982\u4f55\u7528Python\u8ba1\u7b97VIF<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6000\u7279\u68c0\u9a8c\u7528\u4e8e\u786e\u5b9a\u56de\u5f52\u6a21\u578b\u4e2d\u662f\u5426\u5b58\u5728\u5f02\u65b9\u5dee\u6027\u3002 \u5f02\u65b9\u5dee\u662f\u6307\u6b8b\u5dee\u5728\u54cd\u5e94\u53d8\u91cf\u7684\u4e0d\u540c\u6c34\u5e73\u4e0a\u7684\u5206\u6563\u4e0d\u5747\u5300\uff0c\u8fd9\u8fdd\u53cd\u4e86\u6b8b\u5dee\u5728 [&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-2470","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\u6267\u884c\u6000\u7279\u68c0\u9a8c\uff08\u4e00\u6b65\u4e00\u6b65\uff09 - Statorials<\/title>\n<meta name=\"description\" content=\"\u672c\u6559\u7a0b\u901a\u8fc7\u4e00\u4e2a\u5b8c\u6574\u7684\u793a\u4f8b\u89e3\u91ca\u4e86\u5982\u4f55\u5728 Python \u4e2d\u6267\u884c White \u6d4b\u8bd5\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\u4e2d\u7684\u767d\u8272\u6d4b\u8bd5\/\" \/>\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\u6267\u884c\u6000\u7279\u68c0\u9a8c\uff08\u4e00\u6b65\u4e00\u6b65\uff09 - Statorials\" \/>\n<meta property=\"og:description\" content=\"\u672c\u6559\u7a0b\u901a\u8fc7\u4e00\u4e2a\u5b8c\u6574\u7684\u793a\u4f8b\u89e3\u91ca\u4e86\u5982\u4f55\u5728 Python \u4e2d\u6267\u884c White \u6d4b\u8bd5\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/statorials.org\/cn\/python\u4e2d\u7684\u767d\u8272\u6d4b\u8bd5\/\" \/>\n<meta property=\"og:site_name\" content=\"Statorials\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-22T03:25:54+00:00\" \/>\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%e4%b8%ad%e7%9a%84%e7%99%bd%e8%89%b2%e6%b5%8b%e8%af%95\/\",\"url\":\"https:\/\/statorials.org\/cn\/python%e4%b8%ad%e7%9a%84%e7%99%bd%e8%89%b2%e6%b5%8b%e8%af%95\/\",\"name\":\"\u5982\u4f55\u5728 Python \u4e2d\u6267\u884c\u6000\u7279\u68c0\u9a8c\uff08\u4e00\u6b65\u4e00\u6b65\uff09 - Statorials\",\"isPartOf\":{\"@id\":\"https:\/\/statorials.org\/cn\/#website\"},\"datePublished\":\"2023-07-22T03:25:54+00:00\",\"dateModified\":\"2023-07-22T03:25:54+00:00\",\"author\":{\"@id\":\"https:\/\/statorials.org\/cn\/#\/schema\/person\/124e4e5b7c9f8dc0f1f95cc8c1db3261\"},\"description\":\"\u672c\u6559\u7a0b\u901a\u8fc7\u4e00\u4e2a\u5b8c\u6574\u7684\u793a\u4f8b\u89e3\u91ca\u4e86\u5982\u4f55\u5728 Python \u4e2d\u6267\u884c White \u6d4b\u8bd5\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/statorials.org\/cn\/python%e4%b8%ad%e7%9a%84%e7%99%bd%e8%89%b2%e6%b5%8b%e8%af%95\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/statorials.org\/cn\/python%e4%b8%ad%e7%9a%84%e7%99%bd%e8%89%b2%e6%b5%8b%e8%af%95\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/statorials.org\/cn\/python%e4%b8%ad%e7%9a%84%e7%99%bd%e8%89%b2%e6%b5%8b%e8%af%95\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u5bb6\",\"item\":\"https:\/\/statorials.org\/cn\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5982\u4f55\u5728 python \u4e2d\u6267\u884c\u6000\u7279\u6d4b\u8bd5\uff08\u4e00\u6b65\u4e00\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\u6267\u884c\u6000\u7279\u68c0\u9a8c\uff08\u4e00\u6b65\u4e00\u6b65\uff09 - Statorials","description":"\u672c\u6559\u7a0b\u901a\u8fc7\u4e00\u4e2a\u5b8c\u6574\u7684\u793a\u4f8b\u89e3\u91ca\u4e86\u5982\u4f55\u5728 Python \u4e2d\u6267\u884c White \u6d4b\u8bd5\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\u4e2d\u7684\u767d\u8272\u6d4b\u8bd5\/","og_locale":"zh_CN","og_type":"article","og_title":"\u5982\u4f55\u5728 Python \u4e2d\u6267\u884c\u6000\u7279\u68c0\u9a8c\uff08\u4e00\u6b65\u4e00\u6b65\uff09 - Statorials","og_description":"\u672c\u6559\u7a0b\u901a\u8fc7\u4e00\u4e2a\u5b8c\u6574\u7684\u793a\u4f8b\u89e3\u91ca\u4e86\u5982\u4f55\u5728 Python \u4e2d\u6267\u884c White \u6d4b\u8bd5\u3002","og_url":"https:\/\/statorials.org\/cn\/python\u4e2d\u7684\u767d\u8272\u6d4b\u8bd5\/","og_site_name":"Statorials","article_published_time":"2023-07-22T03:25:54+00:00","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%e4%b8%ad%e7%9a%84%e7%99%bd%e8%89%b2%e6%b5%8b%e8%af%95\/","url":"https:\/\/statorials.org\/cn\/python%e4%b8%ad%e7%9a%84%e7%99%bd%e8%89%b2%e6%b5%8b%e8%af%95\/","name":"\u5982\u4f55\u5728 Python \u4e2d\u6267\u884c\u6000\u7279\u68c0\u9a8c\uff08\u4e00\u6b65\u4e00\u6b65\uff09 - Statorials","isPartOf":{"@id":"https:\/\/statorials.org\/cn\/#website"},"datePublished":"2023-07-22T03:25:54+00:00","dateModified":"2023-07-22T03:25:54+00:00","author":{"@id":"https:\/\/statorials.org\/cn\/#\/schema\/person\/124e4e5b7c9f8dc0f1f95cc8c1db3261"},"description":"\u672c\u6559\u7a0b\u901a\u8fc7\u4e00\u4e2a\u5b8c\u6574\u7684\u793a\u4f8b\u89e3\u91ca\u4e86\u5982\u4f55\u5728 Python \u4e2d\u6267\u884c White \u6d4b\u8bd5\u3002","breadcrumb":{"@id":"https:\/\/statorials.org\/cn\/python%e4%b8%ad%e7%9a%84%e7%99%bd%e8%89%b2%e6%b5%8b%e8%af%95\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/statorials.org\/cn\/python%e4%b8%ad%e7%9a%84%e7%99%bd%e8%89%b2%e6%b5%8b%e8%af%95\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/statorials.org\/cn\/python%e4%b8%ad%e7%9a%84%e7%99%bd%e8%89%b2%e6%b5%8b%e8%af%95\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u5bb6","item":"https:\/\/statorials.org\/cn\/"},{"@type":"ListItem","position":2,"name":"\u5982\u4f55\u5728 python \u4e2d\u6267\u884c\u6000\u7279\u6d4b\u8bd5\uff08\u4e00\u6b65\u4e00\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\/2470","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=2470"}],"version-history":[{"count":0,"href":"https:\/\/statorials.org\/cn\/wp-json\/wp\/v2\/posts\/2470\/revisions"}],"wp:attachment":[{"href":"https:\/\/statorials.org\/cn\/wp-json\/wp\/v2\/media?parent=2470"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/statorials.org\/cn\/wp-json\/wp\/v2\/categories?post=2470"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/statorials.org\/cn\/wp-json\/wp\/v2\/tags?post=2470"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}