{"id":2115,"date":"2023-07-23T15:23:51","date_gmt":"2023-07-23T15:23:51","guid":{"rendered":"https:\/\/statorials.org\/cn\/%e6%93%8d%e4%bd%9c%e6%95%b0%e6%97%a0%e6%b3%95%e7%94%a8%e4%bb%a5%e4%b8%8b%e5%bd%a2%e5%bc%8f%e5%b9%bf%e6%92%ad\/"},"modified":"2023-07-23T15:23:51","modified_gmt":"2023-07-23T15:23:51","slug":"%e6%93%8d%e4%bd%9c%e6%95%b0%e6%97%a0%e6%b3%95%e7%94%a8%e4%bb%a5%e4%b8%8b%e5%bd%a2%e5%bc%8f%e5%b9%bf%e6%92%ad","status":"publish","type":"post","link":"https:\/\/statorials.org\/cn\/%e6%93%8d%e4%bd%9c%e6%95%b0%e6%97%a0%e6%b3%95%e7%94%a8%e4%bb%a5%e4%b8%8b%e5%bd%a2%e5%bc%8f%e5%b9%bf%e6%92%ad\/","title":{"rendered":"\u5982\u4f55\u4fee\u590d\uff1avalueerror\uff1a\u64cd\u4f5c\u6570\u65e0\u6cd5\u4e0e\u5f62\u72b6\u4e00\u8d77\u5e7f\u64ad"},"content":{"rendered":"<p><\/p>\n<hr>\n<p><span style=\"color: #000000;\">\u4f7f\u7528Python\u65f6\u53ef\u80fd\u4f1a\u9047\u5230\u7684\u9519\u8bef\u662f\uff1a<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #ff0000;\">ValueError<\/span> : operands could not be broadcast together with shapes (2,2) (2,3) \n<\/strong><\/pre>\n<p><span style=\"color: #000000;\">\u5f53\u60a8\u5c1d\u8bd5\u5728 Python \u4e2d\u4f7f\u7528\u4e58\u53f7 ( <strong>*<\/strong> ) \u800c\u4e0d\u662f<strong>numpy.dot()<\/strong>\u51fd\u6570\u6267\u884c\u77e9\u9635\u4e58\u6cd5\u65f6\uff0c\u4f1a\u51fa\u73b0\u6b64\u9519\u8bef\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u4ee5\u4e0b\u793a\u4f8b\u5c55\u793a\u4e86\u5982\u4f55\u5728\u6bcf\u79cd\u60c5\u51b5\u4e0b\u66f4\u6b63\u6b64\u9519\u8bef\u3002<\/span><\/p>\n<h3><span style=\"color: #000000;\"><strong>\u5982\u4f55\u91cd\u73b0\u9519\u8bef<\/strong><\/span><\/h3>\n<p><span style=\"color: #000000;\">\u5047\u8bbe\u6211\u4eec\u6709\u4e00\u4e2a 2&#215;2 \u77e9\u9635 C\uff0c\u5b83\u6709 2 \u884c\u548c 2 \u5217\uff1a<\/span> <\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\" wp-image-19657 aligncenter\" src=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/np1.png\" alt=\"\" width=\"149\" height=\"81\" srcset=\"\" sizes=\"auto, \"><\/p>\n<p><span style=\"color: #000000;\">\u5047\u8bbe\u6211\u4eec\u8fd8\u6709\u4e00\u4e2a 2&#215;3 \u77e9\u9635 D\uff0c\u5b83\u6709 2 \u884c 3 \u5217\uff1a<\/span> <\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\" wp-image-19658 aligncenter\" src=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/np2.png\" alt=\"\" width=\"232\" height=\"77\" srcset=\"\" sizes=\"auto, \"><\/p>\n<p><span style=\"color: #000000;\">\u4ee5\u4e0b\u662f\u77e9\u9635 C \u4e0e\u77e9\u9635 D \u76f8\u4e58\u7684\u65b9\u6cd5\uff1a<\/span> <\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\" wp-image-19659 aligncenter\" src=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/np3.png\" alt=\"\" width=\"466\" height=\"78\" srcset=\"\" sizes=\"auto, \"><\/p>\n<p><span style=\"color: #000000;\">\u8fd9\u4f1a\u4ea7\u751f\u4ee5\u4e0b\u77e9\u9635\uff1a<\/span> <\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\" wp-image-19660 aligncenter\" src=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/np4.png\" alt=\"\" width=\"231\" height=\"82\" srcset=\"\" sizes=\"auto, \"><\/p>\n<p><span style=\"color: #000000;\">\u5047\u8bbe\u6211\u4eec\u5c1d\u8bd5\u5728 Python \u4e2d\u4f7f\u7528\u4e58\u53f7 (*) \u6267\u884c\u77e9\u9635\u4e58\u6cd5\uff0c\u5982\u4e0b\u6240\u793a\uff1a<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008000;\">import<\/span> numpy <span style=\"color: #008000;\">as<\/span> np\n\n<span style=\"color: #008080;\">#define matrices\n<\/span>C = np. <span style=\"color: #3366ff;\">array<\/span> ([7, 5, 6, 3]). <span style=\"color: #3366ff;\">reshape<\/span> (2, 2)\nD = np. <span style=\"color: #3366ff;\">array<\/span> ([2, 1, 4, 5, 1, 2]). <span style=\"color: #3366ff;\">reshape<\/span> (2, 3)\n\n<span style=\"color: #008080;\">#print dies<\/span>\n<span style=\"color: #008000;\">print<\/span> (C)\n\n[[7 5]\n [6 3]]\n\n<span style=\"color: #008000;\">print<\/span> (D)\n\n[[2 1 4]\n [5 1 2]]\n\n<span style=\"color: #008080;\">#attempt to multiply two matrices together\n<\/span>CD\n\n<span style=\"color: #ff0000;\">ValueError: <span style=\"color: #000000;\">operands could not be broadcast together with shapes (2,2) (2,3)<\/span>  \n<\/span><\/strong><\/pre>\n<p><span style=\"color: #000000;\">\u6211\u4eec\u6536\u5230\u4e00\u4e2a<strong>ValueError<\/strong> \u3002\u6211\u4eec\u53ef\u4ee5\u53c2\u8003<a href=\"https:\/\/numpy.org\/devdocs\/user\/basics.broadcasting.html\" target=\"_blank\" rel=\"noopener\">NumPy \u6587\u6863<\/a>\u6765\u4e86\u89e3\u4e3a\u4ec0\u4e48\u4f1a\u6536\u5230\u6b64\u9519\u8bef\uff1a<\/span><\/p>\n<blockquote>\n<p><span style=\"color: #000000;\">\u5f53\u64cd\u4f5c\u4e24\u4e2a\u6570\u7ec4\u65f6\uff0cNumPy \u9010\u4e2a\u5143\u7d20\u5730\u6bd4\u8f83\u5b83\u4eec\u7684\u5f62\u72b6\u3002\u5b83\u4ece\u6700\u7ec8\u5c3a\u5bf8\uff08\u5373\u6700\u53f3\u8fb9\uff09\u5f00\u59cb\u5e76\u5411\u5de6\u79fb\u52a8\u3002\u4e24\u4e2a\u7ef4\u5ea6\u517c\u5bb9\u65f6<\/span><\/p>\n<ul>\n<li><span style=\"color: #000000;\">\u5b83\u4eec\u662f\u76f8\u7b49\u7684\uff0c\u6216\u8005<\/span><\/li>\n<li><span style=\"color: #000000;\">\u5176\u4e2d\u4e4b\u4e00\u662f 1<\/span><\/li>\n<\/ul>\n<p><span style=\"color: #000000;\">\u5982\u679c\u4e0d\u6ee1\u8db3\u8fd9\u4e9b\u6761\u4ef6\uff0c\u5219\u4f1a\u629b\u51fa<strong>ValueError: Operands Could not be Broadcast Together \u5f02\u5e38<\/strong>\uff0c\u8868\u660e\u6570\u7ec4\u7684\u5f62\u72b6\u4e0d\u517c\u5bb9\u3002<\/span><\/p>\n<\/blockquote>\n<p><span style=\"color: #000000;\">\u7531\u4e8e\u6211\u4eec\u7684\u4e24\u4e2a\u77e9\u9635\u7684\u6700\u7ec8\u7ef4\u5ea6\u503c\u4e0d\u540c\uff08\u77e9\u9635 C \u7684\u6700\u7ec8\u7ef4\u5ea6\u4e3a 2\uff0c\u77e9\u9635 D \u7684\u6700\u7ec8\u7ef4\u5ea6\u4e3a 3\uff09\uff0c\u56e0\u6b64\u6211\u4eec\u6536\u5230\u9519\u8bef\u3002<\/span><\/p>\n<h3><span style=\"color: #000000;\"><strong>\u5982\u4f55\u4fee\u590d\u9519\u8bef<\/strong><\/span><\/h3>\n<p><span style=\"color: #000000;\">\u4fee\u590d\u6b64\u9519\u8bef\u7684\u6700\u7b80\u5355\u65b9\u6cd5\u662f\u7b80\u5355\u5730\u4f7f\u7528<strong>numpy.dot()<\/strong>\u51fd\u6570\u6765\u6267\u884c\u77e9\u9635\u4e58\u6cd5\uff1a<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008000;\">import<\/span> numpy <span style=\"color: #008000;\">as<\/span> np\n\n<span style=\"color: #008080;\">#define matrices\n<\/span>C = np. <span style=\"color: #3366ff;\">array<\/span> ([7, 5, 6, 3]). <span style=\"color: #3366ff;\">reshape<\/span> (2, 2)\nD = np. <span style=\"color: #3366ff;\">array<\/span> ([2, 1, 4, 5, 1, 2]). <span style=\"color: #3366ff;\">reshape<\/span> (2, 3)\n\n<span style=\"color: #008080;\">#perform matrix multiplication<\/span>\nC. <span style=\"color: #3366ff;\">dowry<\/span> (D)\n\narray([[39, 12, 38],\n       [27, 9, 30]])\n<\/strong><\/pre>\n<p><span style=\"color: #000000;\">\u8bf7\u6ce8\u610f\uff0c\u6211\u4eec\u907f\u514d\u4e86<strong>ValueError<\/strong>\u5e76\u6210\u529f\u5730\u5c06\u4e24\u4e2a\u77e9\u9635\u76f8\u4e58\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u53e6\u8bf7\u6ce8\u610f\uff0c\u7ed3\u679c\u4e0e\u6211\u4eec\u4e4b\u524d\u624b\u52a8\u8ba1\u7b97\u7684\u7ed3\u679c\u76f8\u7b26\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\u89e3\u91ca\u4e86\u5982\u4f55\u4fee\u590d Python \u4e2d\u7684\u5176\u4ed6\u5e38\u89c1\u9519\u8bef\uff1a<\/span><\/p>\n<p><a href=\"https:\/\/statorials.org\/cn\/\u5217\u91cd\u53e0\u4f46\u672a\u6307\u5b9a\u540e\u7f00\/\" target=\"_blank\" rel=\"noopener\">\u5982\u4f55\u4fee\u590d\uff1a\u5217\u91cd\u53e0\u4f46\u672a\u6307\u5b9a\u540e\u7f00<\/a><br \/><a href=\"https:\/\/statorials.org\/cn\/numpy-ndarray-\u5bf9\u8c61\u6ca1\u6709\u5c5e\u6027\u8ffd\u52a0\/\" target=\"_blank\" rel=\"noopener\">\u5982\u4f55\u4fee\u590d\uff1a\u5bf9\u8c61\u201cnumpy.ndarray\u201d\u6ca1\u6709\u201cappend\u201d\u5c5e\u6027<\/a><br \/><a href=\"https:\/\/statorials.org\/cn\/\u5982\u679c\u4f7f\u7528\u60a8\u9700\u8981\u4f20\u9012\u7d22\u5f15\u7684\u6240\u6709\u6807\u91cf\u503c\uff0c\u5219\u4f1a\u51fa\u73b0\u503c\u9519\u8bef\/\" target=\"_blank\" rel=\"noopener\">\u5982\u4f55\u4fee\u590d\uff1a\u5982\u679c\u4f7f\u7528\u6240\u6709\u6807\u91cf\u503c\uff0c\u5219\u9700\u8981\u4f20\u9012\u7d22\u5f15<\/a><br \/><a href=\"https:\/\/statorials.org\/cn\/valueerror-\u65e0\u6cd5\u5c06-float-nan-\u8f6c\u6362\u4e3a\u6574\u6570\/\">\u5982\u4f55\u4fee\u590d\uff1aValueError\uff1a\u65e0\u6cd5\u5c06 float NaN \u8f6c\u6362\u4e3a int<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4f7f\u7528Python\u65f6\u53ef\u80fd\u4f1a\u9047\u5230\u7684\u9519\u8bef\u662f\uff1a ValueError : operands could not be  [&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-2115","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\u4fee\u590d\uff1aValueError\uff1a\u65e0\u6cd5\u4f7f\u7528\u5f62\u72b6\u5e7f\u64ad\u64cd\u4f5c\u6570 - Statorials<\/title>\n<meta name=\"description\" content=\"\u672c\u6559\u7a0b\u4ecb\u7ecd\u5982\u4f55\u4fee\u590d Python \u4e2d\u7684\u4ee5\u4e0b\u9519\u8bef\uff1a\u64cd\u4f5c\u6570\u65e0\u6cd5\u4f7f\u7528\u5f62\u72b6\u8fdb\u884c\u5e7f\u64ad\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\/\u64cd\u4f5c\u6570\u65e0\u6cd5\u7528\u4ee5\u4e0b\u5f62\u5f0f\u5e7f\u64ad\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5982\u4f55\u4fee\u590d\uff1aValueError\uff1a\u65e0\u6cd5\u4f7f\u7528\u5f62\u72b6\u5e7f\u64ad\u64cd\u4f5c\u6570 - Statorials\" \/>\n<meta property=\"og:description\" content=\"\u672c\u6559\u7a0b\u4ecb\u7ecd\u5982\u4f55\u4fee\u590d Python \u4e2d\u7684\u4ee5\u4e0b\u9519\u8bef\uff1a\u64cd\u4f5c\u6570\u65e0\u6cd5\u4f7f\u7528\u5f62\u72b6\u8fdb\u884c\u5e7f\u64ad\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/statorials.org\/cn\/\u64cd\u4f5c\u6570\u65e0\u6cd5\u7528\u4ee5\u4e0b\u5f62\u5f0f\u5e7f\u64ad\/\" \/>\n<meta property=\"og:site_name\" content=\"Statorials\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-23T15:23:51+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/np1.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\/%e6%93%8d%e4%bd%9c%e6%95%b0%e6%97%a0%e6%b3%95%e7%94%a8%e4%bb%a5%e4%b8%8b%e5%bd%a2%e5%bc%8f%e5%b9%bf%e6%92%ad\/\",\"url\":\"https:\/\/statorials.org\/cn\/%e6%93%8d%e4%bd%9c%e6%95%b0%e6%97%a0%e6%b3%95%e7%94%a8%e4%bb%a5%e4%b8%8b%e5%bd%a2%e5%bc%8f%e5%b9%bf%e6%92%ad\/\",\"name\":\"\u5982\u4f55\u4fee\u590d\uff1aValueError\uff1a\u65e0\u6cd5\u4f7f\u7528\u5f62\u72b6\u5e7f\u64ad\u64cd\u4f5c\u6570 - Statorials\",\"isPartOf\":{\"@id\":\"https:\/\/statorials.org\/cn\/#website\"},\"datePublished\":\"2023-07-23T15:23:51+00:00\",\"dateModified\":\"2023-07-23T15:23:51+00:00\",\"author\":{\"@id\":\"https:\/\/statorials.org\/cn\/#\/schema\/person\/124e4e5b7c9f8dc0f1f95cc8c1db3261\"},\"description\":\"\u672c\u6559\u7a0b\u4ecb\u7ecd\u5982\u4f55\u4fee\u590d Python \u4e2d\u7684\u4ee5\u4e0b\u9519\u8bef\uff1a\u64cd\u4f5c\u6570\u65e0\u6cd5\u4f7f\u7528\u5f62\u72b6\u8fdb\u884c\u5e7f\u64ad\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/statorials.org\/cn\/%e6%93%8d%e4%bd%9c%e6%95%b0%e6%97%a0%e6%b3%95%e7%94%a8%e4%bb%a5%e4%b8%8b%e5%bd%a2%e5%bc%8f%e5%b9%bf%e6%92%ad\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/statorials.org\/cn\/%e6%93%8d%e4%bd%9c%e6%95%b0%e6%97%a0%e6%b3%95%e7%94%a8%e4%bb%a5%e4%b8%8b%e5%bd%a2%e5%bc%8f%e5%b9%bf%e6%92%ad\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/statorials.org\/cn\/%e6%93%8d%e4%bd%9c%e6%95%b0%e6%97%a0%e6%b3%95%e7%94%a8%e4%bb%a5%e4%b8%8b%e5%bd%a2%e5%bc%8f%e5%b9%bf%e6%92%ad\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u5bb6\",\"item\":\"https:\/\/statorials.org\/cn\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5982\u4f55\u4fee\u590d\uff1avalueerror\uff1a\u64cd\u4f5c\u6570\u65e0\u6cd5\u4e0e\u5f62\u72b6\u4e00\u8d77\u5e7f\u64ad\"}]},{\"@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\u4fee\u590d\uff1aValueError\uff1a\u65e0\u6cd5\u4f7f\u7528\u5f62\u72b6\u5e7f\u64ad\u64cd\u4f5c\u6570 - Statorials","description":"\u672c\u6559\u7a0b\u4ecb\u7ecd\u5982\u4f55\u4fee\u590d Python \u4e2d\u7684\u4ee5\u4e0b\u9519\u8bef\uff1a\u64cd\u4f5c\u6570\u65e0\u6cd5\u4f7f\u7528\u5f62\u72b6\u8fdb\u884c\u5e7f\u64ad\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\/\u64cd\u4f5c\u6570\u65e0\u6cd5\u7528\u4ee5\u4e0b\u5f62\u5f0f\u5e7f\u64ad\/","og_locale":"zh_CN","og_type":"article","og_title":"\u5982\u4f55\u4fee\u590d\uff1aValueError\uff1a\u65e0\u6cd5\u4f7f\u7528\u5f62\u72b6\u5e7f\u64ad\u64cd\u4f5c\u6570 - Statorials","og_description":"\u672c\u6559\u7a0b\u4ecb\u7ecd\u5982\u4f55\u4fee\u590d Python \u4e2d\u7684\u4ee5\u4e0b\u9519\u8bef\uff1a\u64cd\u4f5c\u6570\u65e0\u6cd5\u4f7f\u7528\u5f62\u72b6\u8fdb\u884c\u5e7f\u64ad\u3002","og_url":"https:\/\/statorials.org\/cn\/\u64cd\u4f5c\u6570\u65e0\u6cd5\u7528\u4ee5\u4e0b\u5f62\u5f0f\u5e7f\u64ad\/","og_site_name":"Statorials","article_published_time":"2023-07-23T15:23:51+00:00","og_image":[{"url":"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/np1.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\/%e6%93%8d%e4%bd%9c%e6%95%b0%e6%97%a0%e6%b3%95%e7%94%a8%e4%bb%a5%e4%b8%8b%e5%bd%a2%e5%bc%8f%e5%b9%bf%e6%92%ad\/","url":"https:\/\/statorials.org\/cn\/%e6%93%8d%e4%bd%9c%e6%95%b0%e6%97%a0%e6%b3%95%e7%94%a8%e4%bb%a5%e4%b8%8b%e5%bd%a2%e5%bc%8f%e5%b9%bf%e6%92%ad\/","name":"\u5982\u4f55\u4fee\u590d\uff1aValueError\uff1a\u65e0\u6cd5\u4f7f\u7528\u5f62\u72b6\u5e7f\u64ad\u64cd\u4f5c\u6570 - Statorials","isPartOf":{"@id":"https:\/\/statorials.org\/cn\/#website"},"datePublished":"2023-07-23T15:23:51+00:00","dateModified":"2023-07-23T15:23:51+00:00","author":{"@id":"https:\/\/statorials.org\/cn\/#\/schema\/person\/124e4e5b7c9f8dc0f1f95cc8c1db3261"},"description":"\u672c\u6559\u7a0b\u4ecb\u7ecd\u5982\u4f55\u4fee\u590d Python \u4e2d\u7684\u4ee5\u4e0b\u9519\u8bef\uff1a\u64cd\u4f5c\u6570\u65e0\u6cd5\u4f7f\u7528\u5f62\u72b6\u8fdb\u884c\u5e7f\u64ad\u3002","breadcrumb":{"@id":"https:\/\/statorials.org\/cn\/%e6%93%8d%e4%bd%9c%e6%95%b0%e6%97%a0%e6%b3%95%e7%94%a8%e4%bb%a5%e4%b8%8b%e5%bd%a2%e5%bc%8f%e5%b9%bf%e6%92%ad\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/statorials.org\/cn\/%e6%93%8d%e4%bd%9c%e6%95%b0%e6%97%a0%e6%b3%95%e7%94%a8%e4%bb%a5%e4%b8%8b%e5%bd%a2%e5%bc%8f%e5%b9%bf%e6%92%ad\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/statorials.org\/cn\/%e6%93%8d%e4%bd%9c%e6%95%b0%e6%97%a0%e6%b3%95%e7%94%a8%e4%bb%a5%e4%b8%8b%e5%bd%a2%e5%bc%8f%e5%b9%bf%e6%92%ad\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u5bb6","item":"https:\/\/statorials.org\/cn\/"},{"@type":"ListItem","position":2,"name":"\u5982\u4f55\u4fee\u590d\uff1avalueerror\uff1a\u64cd\u4f5c\u6570\u65e0\u6cd5\u4e0e\u5f62\u72b6\u4e00\u8d77\u5e7f\u64ad"}]},{"@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\/2115","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=2115"}],"version-history":[{"count":0,"href":"https:\/\/statorials.org\/cn\/wp-json\/wp\/v2\/posts\/2115\/revisions"}],"wp:attachment":[{"href":"https:\/\/statorials.org\/cn\/wp-json\/wp\/v2\/media?parent=2115"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/statorials.org\/cn\/wp-json\/wp\/v2\/categories?post=2115"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/statorials.org\/cn\/wp-json\/wp\/v2\/tags?post=2115"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}