{"id":1318,"date":"2024-08-31T16:18:56","date_gmt":"2024-08-31T08:18:56","guid":{"rendered":"https:\/\/www.feeoo.fun\/?p=1318"},"modified":"2025-02-28T15:15:27","modified_gmt":"2025-02-28T07:15:27","slug":"1318","status":"publish","type":"post","link":"https:\/\/www.feeoo.fun\/index.php\/2024\/08\/31\/1318\/","title":{"rendered":"NumPy\u2014\u2014Python\u79d1\u5b66\u8ba1\u7b97\u5fc5\u5907\u7684\u5305"},"content":{"rendered":"<figure class=\"wp-block-post-featured-image\"><img decoding=\"async\" width=\"3676\" height=\"1814\" data-src=\"https:\/\/www.feeoo.fun\/wp-content\/uploads\/2024\/07\/image-130.png\" class=\"attachment-post-thumbnail size-post-thumbnail wp-post-image lazyload\" alt=\"\" style=\"--smush-placeholder-width: 3676px; --smush-placeholder-aspect-ratio: 3676\/1814;object-fit:cover;\" data-srcset=\"https:\/\/www.feeoo.fun\/wp-content\/uploads\/2024\/07\/image-130.png 3676w, https:\/\/www.feeoo.fun\/wp-content\/uploads\/2024\/07\/image-130-300x148.png 300w, https:\/\/www.feeoo.fun\/wp-content\/uploads\/2024\/07\/image-130-1024x505.png 1024w, https:\/\/www.feeoo.fun\/wp-content\/uploads\/2024\/07\/image-130-768x379.png 768w, https:\/\/www.feeoo.fun\/wp-content\/uploads\/2024\/07\/image-130-1536x758.png 1536w, https:\/\/www.feeoo.fun\/wp-content\/uploads\/2024\/07\/image-130-2048x1011.png 2048w\" data-sizes=\"(max-width: 3676px) 100vw, 3676px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" \/><\/figure>\n\n\n<p>NumPy \u662f\u4e00\u4e2a\u529f\u80fd\u5f3a\u5927\u7684 Python \u5e93\uff0c\u7528\u4e8e\u5904\u7406\u5927\u578b\u591a\u7ef4\u6570\u7ec4\u548c\u77e9\u9635\uff0c\u4ee5\u53ca\u6267\u884c\u4e0e\u8fd9\u4e9b\u6570\u7ec4\u76f8\u5173\u7684\u6570\u5b66\u8fd0\u7b97\u3002<\/p>\n\n\n\n<p>NumPy \u7684\u4e3b\u8981\u7279\u70b9\u5305\u62ec\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u591a\u7ef4\u6570\u7ec4\u5bf9\u8c61\uff1a<\/strong> NumPy \u63d0\u4f9b\u4e86 ndarray \u5bf9\u8c61\uff0c\u662f\u4e00\u4e2a\u5feb\u901f\u4e14\u7075\u6d3b\u7684\u5927\u578b\u6570\u636e\u5bb9\u5668\uff0c\u652f\u6301\u591a\u7ef4\u6570\u7ec4\u548c\u77e9\u9635\u8fd0\u7b97\u3002<\/li>\n\n\n\n<li><strong>\u5e7f\u6cdb\u7684\u6570\u5b66\u51fd\u6570\u5e93\uff1a<\/strong> \u5b83\u5305\u542b\u4e86\u5927\u91cf\u7684\u6570\u5b66\u51fd\u6570\uff0c\u7528\u4e8e\u6267\u884c\u5404\u79cd\u6570\u5b66\u8fd0\u7b97\uff0c\u5982\u7ebf\u6027\u4ee3\u6570\u3001\u5085\u91cc\u53f6\u53d8\u6362\u3001\u968f\u673a\u6570\u751f\u6210\u7b49\u3002<\/li>\n\n\n\n<li><strong>\u6548\u7387\u548c\u6027\u80fd\uff1a<\/strong> NumPy \u5728\u5e95\u5c42\u4f7f\u7528 C \u548c Fortran \u8bed\u8a00\u5b9e\u73b0\uff0c\u901a\u8fc7\u5411\u91cf\u5316\u64cd\u4f5c\u548c\u4f18\u5316\u7b97\u6cd5\uff0c\u63d0\u9ad8\u4e86\u8ba1\u7b97\u6548\u7387\u548c\u6027\u80fd\u3002<\/li>\n\n\n\n<li><strong>\u4e0e\u5176\u4ed6 Python \u5e93\u7684\u6574\u5408\uff1a<\/strong> NumPy \u4e0e\u5176\u4ed6\u79d1\u5b66\u8ba1\u7b97\u9886\u57df\u7684 Python \u5e93\uff08\u5982 SciPy\u3001matplotlib\u3001pandas \u7b49\uff09\u7d27\u5bc6\u7ed3\u5408\uff0c\u652f\u6301\u6570\u636e\u7684\u5904\u7406\u3001\u5206\u6790\u548c\u53ef\u89c6\u5316\u3002<\/li>\n\n\n\n<li><strong>\u5f00\u6e90\u793e\u533a\u548c\u652f\u6301\uff1a<\/strong> NumPy \u62e5\u6709\u6d3b\u8dc3\u7684\u5f00\u53d1\u793e\u533a\uff0c\u63d0\u4f9b\u8be6\u7ec6\u7684\u6587\u6863\u3001\u6559\u7a0b\u548c\u793a\u4f8b\uff0c\u5e2e\u52a9\u7528\u6237\u5b66\u4e60\u548c\u5e94\u7528\u5176\u529f\u80fd\u3002<\/li>\n<\/ol>\n\n\n\n<p>\u5b98\u65b9\u7f51\u5740\uff1a<a href=\"https:\/\/numpy.org\/\" target=\"_blank\" rel=\"noreferrer noopener\"><\/a><a href=\"https:\/\/numpy.org\/\">NumPy &#8211;<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>NumPy \u662f\u4e00\u4e2a\u529f\u80fd\u5f3a\u5927\u7684 Python \u5e93\uff0c\u7528\u4e8e\u5904\u7406\u5927\u578b\u591a\u7ef4\u6570\u7ec4\u548c\u77e9\u9635\uff0c\u4ee5\u53ca\u6267\u884c\u4e0e\u8fd9\u4e9b\u6570\u7ec4\u76f8\u5173\u7684\u6570\u5b66\u8fd0\u7b97\u3002&#8230;<\/p>\n","protected":false},"author":1,"featured_media":1319,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_kadence_starter_templates_imported_post":false,"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"footnotes":""},"categories":[54],"tags":[],"class_list":["post-1318","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-code-ai"],"_links":{"self":[{"href":"https:\/\/www.feeoo.fun\/index.php\/wp-json\/wp\/v2\/posts\/1318","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.feeoo.fun\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.feeoo.fun\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.feeoo.fun\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.feeoo.fun\/index.php\/wp-json\/wp\/v2\/comments?post=1318"}],"version-history":[{"count":3,"href":"https:\/\/www.feeoo.fun\/index.php\/wp-json\/wp\/v2\/posts\/1318\/revisions"}],"predecessor-version":[{"id":2371,"href":"https:\/\/www.feeoo.fun\/index.php\/wp-json\/wp\/v2\/posts\/1318\/revisions\/2371"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.feeoo.fun\/index.php\/wp-json\/wp\/v2\/media\/1319"}],"wp:attachment":[{"href":"https:\/\/www.feeoo.fun\/index.php\/wp-json\/wp\/v2\/media?parent=1318"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.feeoo.fun\/index.php\/wp-json\/wp\/v2\/categories?post=1318"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.feeoo.fun\/index.php\/wp-json\/wp\/v2\/tags?post=1318"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}