{"id":3819,"date":"2023-07-15T09:08:37","date_gmt":"2023-07-15T09:08:37","guid":{"rendered":"https:\/\/statorials.org\/cn\/python%e4%b8%ad%e7%9a%84%e6%9c%80%e5%b0%8f%e5%8a%a0%e6%9d%83%e5%b9%b3%e6%96%b9\/"},"modified":"2023-07-15T09:08:37","modified_gmt":"2023-07-15T09:08:37","slug":"python%e4%b8%ad%e7%9a%84%e6%9c%80%e5%b0%8f%e5%8a%a0%e6%9d%83%e5%b9%b3%e6%96%b9","status":"publish","type":"post","link":"https:\/\/statorials.org\/cn\/python%e4%b8%ad%e7%9a%84%e6%9c%80%e5%b0%8f%e5%8a%a0%e6%9d%83%e5%b9%b3%e6%96%b9\/","title":{"rendered":"\u5982\u4f55\u5728 python \u4e2d\u6267\u884c\u52a0\u6743\u6700\u5c0f\u4e8c\u4e58\u56de\u5f52"},"content":{"rendered":"<p><\/p>\n<hr>\n<p><span style=\"color: #000000;\"><a href=\"https:\/\/statorials.org\/cn\/\u7ebf\u6027\u56de\u5f52\u5047\u8bbe\/\" target=\"_blank\" rel=\"noopener\">\u7ebf\u6027\u56de\u5f52\u7684\u5173\u952e\u5047\u8bbe<\/a>\u4e4b\u4e00\u662f<a href=\"https:\/\/statorials.org\/cn\/\u6b8b\u7559\u7269\/\" target=\"_blank\" rel=\"noopener\">\u6b8b\u5dee<\/a>\u5728\u9884\u6d4b\u53d8\u91cf\u7684\u6bcf\u4e2a\u6c34\u5e73\u4e0a\u4ee5\u76f8\u7b49\u65b9\u5dee\u5206\u5e03\u3002\u8fd9\u79cd\u5047\u8bbe\u79f0\u4e3a<strong>\u540c\u65b9\u5dee\u6027<\/strong>\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u5982\u679c\u4e0d\u9075\u5b88\u6b64\u5047\u8bbe\uff0c\u5219\u79f0\u6b8b\u5dee\u4e2d\u5b58\u5728<a href=\"https:\/\/statorials.org\/cn\/\u5f02\u65b9\u5dee\u56de\u5f52\/\" target=\"_blank\" rel=\"noopener\">\u5f02\u65b9\u5dee\u6027<\/a>\u3002\u5f53\u8fd9\u79cd\u60c5\u51b5\u53d1\u751f\u65f6\uff0c\u56de\u5f52\u7ed3\u679c\u53d8\u5f97\u4e0d\u53ef\u9760\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u89e3\u51b3\u6b64\u95ee\u9898\u7684\u4e00\u79cd\u65b9\u6cd5\u662f\u4f7f\u7528<strong>\u52a0\u6743\u6700\u5c0f\u4e8c\u4e58\u56de\u5f52<\/strong>\uff0c\u5b83\u4e3a<a href=\"https:\/\/statorials.org\/cn\/\u7edf\u8ba1\u89c2\u5bdf\/\" target=\"_blank\" rel=\"noopener\">\u89c2\u6d4b\u503c<\/a>\u5206\u914d\u6743\u91cd\uff0c\u4f7f\u5f97\u8bef\u5dee\u65b9\u5dee\u8f83\u5c0f\u7684\u89c2\u6d4b\u503c\u83b7\u5f97\u66f4\u591a\u6743\u91cd\uff0c\u56e0\u4e3a\u4e0e\u8bef\u5dee\u65b9\u5dee\u8f83\u5927\u7684\u89c2\u6d4b\u503c\u76f8\u6bd4\uff0c\u5b83\u4eec\u5305\u542b\u66f4\u591a\u4fe1\u606f\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u672c\u6559\u7a0b\u63d0\u4f9b\u4e86\u5982\u4f55\u5728 Python \u4e2d\u6267\u884c\u52a0\u6743\u6700\u5c0f\u4e8c\u4e58\u56de\u5f52\u7684\u5206\u6b65\u793a\u4f8b\u3002<\/span><\/p>\n<h2><span style=\"color: #000000;\"><strong>\u7b2c 1 \u6b65\uff1a\u521b\u5efa\u6570\u636e<\/strong><\/span><\/h2>\n<p><span style=\"color: #000000;\">\u9996\u5148\uff0c\u6211\u4eec\u521b\u5efa\u4ee5\u4e0b pandas DataFrame\uff0c\u5176\u4e2d\u5305\u542b\u6709\u5173\u73ed\u7ea7 16 \u540d\u5b66\u751f\u7684\u5b66\u4e60\u5c0f\u65f6\u6570\u548c\u671f\u672b\u8003\u8bd5\u6210\u7ee9\u7684\u4fe1\u606f\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;\">hours<\/span> ': [1, 1, 2, 2, 2, 3, 4, 4, 4, 5, 5, 5, 6, 6, 7, 8],\n                   ' <span style=\"color: #ff0000;\">score<\/span> ': [48, 78, 72, 70, 66, 92, 93, 75, 75, 80, 95, 97,\n                             90, 96, 99, 99]})\n\n<span style=\"color: #008080;\">#view first five rows of DataFrame\n<\/span><span style=\"color: #008000;\">print<\/span> ( <span style=\"color: #3366ff;\">df.head<\/span> ())\n\n   hours score\n0 1 48\n1 1 78\n2 2 72\n3 2 70\n4 2 66<\/strong><\/pre>\n<h2><span style=\"color: #000000;\"><strong>\u6b65\u9aa4 2\uff1a\u62df\u5408\u7b80\u5355\u7ebf\u6027\u56de\u5f52\u6a21\u578b<\/strong><\/span><\/h2>\n<p><span style=\"color: #000000;\">\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u4f7f\u7528<strong>statsmodels<\/strong>\u6a21\u5757\u4e2d\u7684\u51fd\u6570\u6765\u62df\u5408\u4e00\u4e2a\u7b80\u5355\u7684\u7ebf\u6027\u56de\u5f52\u6a21\u578b\uff0c\u4f7f\u7528<strong>\u5c0f\u65f6<\/strong>\u4f5c\u4e3a\u9884\u6d4b\u53d8\u91cf\uff0c<strong>\u5f97\u5206<\/strong>\u4f5c\u4e3a\u54cd\u5e94\u53d8\u91cf\uff1a<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008000;\">import<\/span> statsmodels.api <span style=\"color: #008000;\">as<\/span> sm\n\n<span style=\"color: #008080;\">#define predictor and response variables\n<\/span>y = df[' <span style=\"color: #ff0000;\">score<\/span> ']\nX = df[' <span style=\"color: #ff0000;\">hours<\/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 linear regression model\n<\/span>fit = sm. <span style=\"color: #3366ff;\">OLS<\/span> (y,x). <span style=\"color: #3366ff;\">fit<\/span> ()\n\n<span style=\"color: #008080;\">#view model summary\n<\/span><span style=\"color: #008000;\">print<\/span> ( <span style=\"color: #3366ff;\">fit.summary<\/span> ())\n\n                            OLS Regression Results                            \n==================================================== ============================\nDept. Variable: R-squared score: 0.630\nModel: OLS Adj. R-squared: 0.603\nMethod: Least Squares F-statistic: 23.80\nDate: Mon, 31 Oct 2022 Prob (F-statistic): 0.000244\nTime: 11:19:54 Log-Likelihood: -57.184\nNo. Observations: 16 AIC: 118.4\nDf Residuals: 14 BIC: 119.9\nModel: 1                                         \nCovariance Type: non-robust                                         \n==================================================== ============================\n                 coef std err t P&gt;|t| [0.025 0.975]\n-------------------------------------------------- ----------------------------\nconst 60.4669 5.128 11.791 0.000 49.468 71.465\nhours 5.5005 1.127 4.879 0.000 3.082 7.919\n==================================================== ============================\nOmnibus: 0.041 Durbin-Watson: 1.910\nProb(Omnibus): 0.980 Jarque-Bera (JB): 0.268\nSkew: -0.010 Prob(JB): 0.875\nKurtosis: 2.366 Cond. No. 10.5<\/strong><\/pre>\n<p><span style=\"color: #000000;\">\u4ece\u6a21\u578b\u6458\u8981\u4e2d\uff0c\u6211\u4eec\u53ef\u4ee5\u770b\u5230\u6a21\u578b\u7684 R \u5e73\u65b9\u503c\u4e3a<strong>0.630<\/strong> \u3002<\/span><\/p>\n<p><span style=\"color: #000000;\"><strong>\u76f8\u5173\uff1a<\/strong><a href=\"https:\/\/statorials.org\/cn\/\u826f\u597d\u7684-r-\u5e73\u65b9\u503c\/\" target=\"_blank\" rel=\"noopener\">\u4ec0\u4e48\u662f\u597d\u7684 R \u5e73\u65b9\u503c\uff1f<\/a><\/span><\/p>\n<h2><span style=\"color: #000000;\"><strong>\u6b65\u9aa4 3\uff1a\u62df\u5408\u52a0\u6743\u6700\u5c0f\u4e8c\u4e58\u6a21\u578b<\/strong><\/span><\/h2>\n<p><span style=\"color: #000000;\">\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528<strong>statsmodels<\/strong> <strong>WLS()<\/strong>\u51fd\u6570\u901a\u8fc7\u8bbe\u7f6e\u6743\u91cd\u6765\u6267\u884c\u52a0\u6743\u6700\u5c0f\u4e8c\u4e58\u6cd5\uff0c\u4ee5\u4f7f\u65b9\u5dee\u8f83\u4f4e\u7684\u89c2\u6d4b\u503c\u83b7\u5f97\u66f4\u5927\u7684\u6743\u91cd\uff1a<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <span style=\"color: #000000;\"><strong><span style=\"color: #008080;\">#define weights to use\n<\/span>wt = 1\/smf. <span style=\"color: #3366ff;\">ols<\/span> (' <span style=\"color: #ff0000;\">fit.resid.abs() ~ fit.fittedvalues<\/span> ', data=df). <span style=\"color: #3366ff;\">fit<\/span> (). <span style=\"color: #3366ff;\">fitted values<\/span> **2\n\n<span style=\"color: #008080;\">#fit weighted least squares regression model\n<\/span>fit_wls = sm. <span style=\"color: #3366ff;\">WLS<\/span> (y, X, weights=wt). <span style=\"color: #3366ff;\">fit<\/span> ()\n\n<span style=\"color: #008080;\">#view summary of weighted least squares regression model\n<\/span><span style=\"color: #008000;\">print<\/span> ( <span style=\"color: #3366ff;\">fit_wls.summary<\/span> ())\n\n                            WLS Regression Results                            \n==================================================== ============================\nDept. Variable: R-squared score: 0.676\nModel: WLS Adj. R-squared: 0.653\nMethod: Least Squares F-statistic: 29.24\nDate: Mon, 31 Oct 2022 Prob (F-statistic): 9.24e-05\nTime: 11:20:10 Log-Likelihood: -55.074\nNo. Comments: 16 AIC: 114.1\nDf Residuals: 14 BIC: 115.7\nModel: 1                                         \nCovariance Type: non-robust                                         \n==================================================== ============================\n                 coef std err t P&gt;|t| [0.025 0.975]\n-------------------------------------------------- ----------------------------\nconst 63.9689 5.159 12.400 0.000 52.905 75.033\nhours 4.7091 0.871 5.407 0.000 2.841 6.577\n==================================================== ============================\nOmnibus: 2,482 Durbin-Watson: 1,786\nProb(Omnibus): 0.289 Jarque-Bera (JB): 1.058\nSkew: 0.029 Prob(JB): 0.589\nKurtosis: 1.742 Cond. No. 17.6\n==================================================== ============================<\/strong><\/span><\/pre>\n<p><span style=\"color: #000000;\">\u4ece\u7ed3\u679c\u4e2d\uff0c\u6211\u4eec\u53ef\u4ee5\u770b\u5230\u8be5\u52a0\u6743\u6700\u5c0f\u4e8c\u4e58\u6a21\u578b\u7684 R \u5e73\u65b9\u503c\u5df2\u589e\u52a0\u81f3<strong>0.676<\/strong> \u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u8fd9\u8868\u660e\u52a0\u6743\u6700\u5c0f\u4e8c\u4e58\u6a21\u578b\u6bd4\u7b80\u5355\u7ebf\u6027\u56de\u5f52\u6a21\u578b\u80fd\u591f\u89e3\u91ca\u66f4\u591a\u7684\u8003\u8bd5\u6210\u7ee9\u65b9\u5dee\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u8fd9\u544a\u8bc9\u6211\u4eec\uff0c\u4e0e\u7b80\u5355\u7ebf\u6027\u56de\u5f52\u6a21\u578b\u76f8\u6bd4\uff0c\u52a0\u6743\u6700\u5c0f\u4e8c\u4e58\u6a21\u578b\u53ef\u4ee5\u66f4\u597d\u5730\u62df\u5408\u6570\u636e\u3002<\/span><\/p>\n<h2><span style=\"color: #000000;\"><strong>\u5176\u4ed6\u8d44\u6e90<\/strong><\/span><\/h2>\n<p><span style=\"color: #000000;\">\u4ee5\u4e0b\u6559\u7a0b\u89e3\u91ca\u4e86\u5982\u4f55\u5728 Python \u4e2d\u6267\u884c\u5176\u4ed6\u5e38\u89c1\u4efb\u52a1\uff1a<\/span><\/p>\n<p><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\/\u4e00\u4e9bpython\u60c5\u8282\/\" target=\"_blank\" rel=\"noopener\">\u5982\u4f55\u7528 Python \u521b\u5efa QQ \u56fe<\/a><br \/><a href=\"https:\/\/statorials.org\/cn\/python-\u4e2d\u7684\u591a\u91cd\u5171\u7ebf\u6027\/\" target=\"_blank\" rel=\"noopener\">\u5982\u4f55\u5728 Python \u4e2d\u6d4b\u8bd5\u591a\u91cd\u5171\u7ebf\u6027<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7ebf\u6027\u56de\u5f52\u7684\u5173\u952e\u5047\u8bbe\u4e4b\u4e00\u662f\u6b8b\u5dee\u5728\u9884\u6d4b\u53d8\u91cf\u7684\u6bcf\u4e2a\u6c34\u5e73\u4e0a\u4ee5\u76f8\u7b49\u65b9\u5dee\u5206\u5e03\u3002\u8fd9\u79cd\u5047\u8bbe\u79f0\u4e3a\u540c\u65b9\u5dee\u6027\u3002 \u5982\u679c\u4e0d\u9075\u5b88\u6b64\u5047\u8bbe\uff0c\u5219 [&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-3819","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\u52a0\u6743\u6700\u5c0f\u4e8c\u4e58\u56de\u5f52 - Statorials<\/title>\n<meta name=\"description\" content=\"\u672c\u6559\u7a0b\u4ecb\u7ecd\u5982\u4f55\u5728 Python \u4e2d\u6267\u884c\u52a0\u6743\u6700\u5c0f\u4e8c\u4e58\u56de\u5f52\uff0c\u5305\u62ec\u5206\u6b65\u793a\u4f8b\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\u6700\u5c0f\u52a0\u6743\u5e73\u65b9\/\" \/>\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\u52a0\u6743\u6700\u5c0f\u4e8c\u4e58\u56de\u5f52 - Statorials\" \/>\n<meta property=\"og:description\" content=\"\u672c\u6559\u7a0b\u4ecb\u7ecd\u5982\u4f55\u5728 Python \u4e2d\u6267\u884c\u52a0\u6743\u6700\u5c0f\u4e8c\u4e58\u56de\u5f52\uff0c\u5305\u62ec\u5206\u6b65\u793a\u4f8b\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/statorials.org\/cn\/python\u4e2d\u7684\u6700\u5c0f\u52a0\u6743\u5e73\u65b9\/\" \/>\n<meta property=\"og:site_name\" content=\"Statorials\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-15T09:08:37+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%e6%9c%80%e5%b0%8f%e5%8a%a0%e6%9d%83%e5%b9%b3%e6%96%b9\/\",\"url\":\"https:\/\/statorials.org\/cn\/python%e4%b8%ad%e7%9a%84%e6%9c%80%e5%b0%8f%e5%8a%a0%e6%9d%83%e5%b9%b3%e6%96%b9\/\",\"name\":\"\u5982\u4f55\u5728 Python \u4e2d\u6267\u884c\u52a0\u6743\u6700\u5c0f\u4e8c\u4e58\u56de\u5f52 - Statorials\",\"isPartOf\":{\"@id\":\"https:\/\/statorials.org\/cn\/#website\"},\"datePublished\":\"2023-07-15T09:08:37+00:00\",\"dateModified\":\"2023-07-15T09:08:37+00:00\",\"author\":{\"@id\":\"https:\/\/statorials.org\/cn\/#\/schema\/person\/124e4e5b7c9f8dc0f1f95cc8c1db3261\"},\"description\":\"\u672c\u6559\u7a0b\u4ecb\u7ecd\u5982\u4f55\u5728 Python \u4e2d\u6267\u884c\u52a0\u6743\u6700\u5c0f\u4e8c\u4e58\u56de\u5f52\uff0c\u5305\u62ec\u5206\u6b65\u793a\u4f8b\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/statorials.org\/cn\/python%e4%b8%ad%e7%9a%84%e6%9c%80%e5%b0%8f%e5%8a%a0%e6%9d%83%e5%b9%b3%e6%96%b9\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/statorials.org\/cn\/python%e4%b8%ad%e7%9a%84%e6%9c%80%e5%b0%8f%e5%8a%a0%e6%9d%83%e5%b9%b3%e6%96%b9\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/statorials.org\/cn\/python%e4%b8%ad%e7%9a%84%e6%9c%80%e5%b0%8f%e5%8a%a0%e6%9d%83%e5%b9%b3%e6%96%b9\/#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\u52a0\u6743\u6700\u5c0f\u4e8c\u4e58\u56de\u5f52\"}]},{\"@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\u52a0\u6743\u6700\u5c0f\u4e8c\u4e58\u56de\u5f52 - Statorials","description":"\u672c\u6559\u7a0b\u4ecb\u7ecd\u5982\u4f55\u5728 Python \u4e2d\u6267\u884c\u52a0\u6743\u6700\u5c0f\u4e8c\u4e58\u56de\u5f52\uff0c\u5305\u62ec\u5206\u6b65\u793a\u4f8b\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\u6700\u5c0f\u52a0\u6743\u5e73\u65b9\/","og_locale":"zh_CN","og_type":"article","og_title":"\u5982\u4f55\u5728 Python \u4e2d\u6267\u884c\u52a0\u6743\u6700\u5c0f\u4e8c\u4e58\u56de\u5f52 - Statorials","og_description":"\u672c\u6559\u7a0b\u4ecb\u7ecd\u5982\u4f55\u5728 Python \u4e2d\u6267\u884c\u52a0\u6743\u6700\u5c0f\u4e8c\u4e58\u56de\u5f52\uff0c\u5305\u62ec\u5206\u6b65\u793a\u4f8b\u3002","og_url":"https:\/\/statorials.org\/cn\/python\u4e2d\u7684\u6700\u5c0f\u52a0\u6743\u5e73\u65b9\/","og_site_name":"Statorials","article_published_time":"2023-07-15T09:08:37+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%e6%9c%80%e5%b0%8f%e5%8a%a0%e6%9d%83%e5%b9%b3%e6%96%b9\/","url":"https:\/\/statorials.org\/cn\/python%e4%b8%ad%e7%9a%84%e6%9c%80%e5%b0%8f%e5%8a%a0%e6%9d%83%e5%b9%b3%e6%96%b9\/","name":"\u5982\u4f55\u5728 Python \u4e2d\u6267\u884c\u52a0\u6743\u6700\u5c0f\u4e8c\u4e58\u56de\u5f52 - Statorials","isPartOf":{"@id":"https:\/\/statorials.org\/cn\/#website"},"datePublished":"2023-07-15T09:08:37+00:00","dateModified":"2023-07-15T09:08:37+00:00","author":{"@id":"https:\/\/statorials.org\/cn\/#\/schema\/person\/124e4e5b7c9f8dc0f1f95cc8c1db3261"},"description":"\u672c\u6559\u7a0b\u4ecb\u7ecd\u5982\u4f55\u5728 Python \u4e2d\u6267\u884c\u52a0\u6743\u6700\u5c0f\u4e8c\u4e58\u56de\u5f52\uff0c\u5305\u62ec\u5206\u6b65\u793a\u4f8b\u3002","breadcrumb":{"@id":"https:\/\/statorials.org\/cn\/python%e4%b8%ad%e7%9a%84%e6%9c%80%e5%b0%8f%e5%8a%a0%e6%9d%83%e5%b9%b3%e6%96%b9\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/statorials.org\/cn\/python%e4%b8%ad%e7%9a%84%e6%9c%80%e5%b0%8f%e5%8a%a0%e6%9d%83%e5%b9%b3%e6%96%b9\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/statorials.org\/cn\/python%e4%b8%ad%e7%9a%84%e6%9c%80%e5%b0%8f%e5%8a%a0%e6%9d%83%e5%b9%b3%e6%96%b9\/#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\u52a0\u6743\u6700\u5c0f\u4e8c\u4e58\u56de\u5f52"}]},{"@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\/3819","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=3819"}],"version-history":[{"count":0,"href":"https:\/\/statorials.org\/cn\/wp-json\/wp\/v2\/posts\/3819\/revisions"}],"wp:attachment":[{"href":"https:\/\/statorials.org\/cn\/wp-json\/wp\/v2\/media?parent=3819"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/statorials.org\/cn\/wp-json\/wp\/v2\/categories?post=3819"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/statorials.org\/cn\/wp-json\/wp\/v2\/tags?post=3819"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}