{"id":467,"date":"2023-05-06T15:35:19","date_gmt":"2023-05-06T07:35:19","guid":{"rendered":"https:\/\/zhaocunwei.co.uk\/?p=467"},"modified":"2023-05-06T15:49:05","modified_gmt":"2023-05-06T07:49:05","slug":"code-farmer-for-more-than-10-years","status":"publish","type":"post","link":"https:\/\/zhaocunwei.co.uk\/index.php\/2023\/05\/06\/code-farmer-for-more-than-10-years\/","title":{"rendered":"\u4eca\u5929\u88ab\u5b66\u5f1f\u9119\u89c6\u4e86\u54c8\u54c8\uff0c\u8d76\u7d27\u5206\u4eab\uff1aPython\u4e2d\u7684shape[0]\u3001shape[1]\u548cshape[-1]\uff0c\u4f5c\u4e3a\u64b8\u4ee3\u780110\u591a\u5e74\u7684\u7801\u519c-Today, I was despised by my fellow students haha, hurry to share: shape[0], shape[1] and shape[-1] in Python, as a code farmer for more than 10 years"},"content":{"rendered":"<h1>\u524d\u8a00<\/h1>\n<p>\u6700\u8fd1\u9879\u76ee\u5c0f\u4f19\u4f34\u95ee\u6211\u4e00\u4e0b\u95ee\u9898\uff0c\u628a\u6211\u96be\u4f4f\u4e86\uff0c\ud83d\ude00\uff0c<\/p>\n<h1>\u8be6\u89e3<\/h1>\n<p>\u6211\u4eec\u77e5\u9053\u5728Python\u4e2d\u7684\u6570\u7ec4\u548c\u5f20\u91cf\u7684shape\u5c5e\u6027\u4e2d:<\/p>\n<ul>\n<li>\n<p>shape[0] \u8868\u793a\u6570\u7ec4\u7684\u7b2c\u4e00\u4e2a\u7ef4\u5ea6\u5927\u5c0f,\u901a\u5e38\u662f\u884c\u6570<\/p>\n<\/li>\n<li>\n<p>shape[1] \u8868\u793a\u6570\u7ec4\u7684\u7b2c\u4e8c\u4e2a\u7ef4\u5ea6\u5927\u5c0f,\u901a\u5e38\u662f\u5217\u6570<\/p>\n<\/li>\n<li>\n<p>shape[-1] \u8868\u793a\u6570\u7ec4\u7684\u6700\u540e\u4e00\u4e2a\u7ef4\u5ea6\u5927\u5c0f<\/p>\n<p>\u4e3e\u4e2a\u4f8b\u5b50:<\/p>\n<\/li>\n<\/ul>\n<pre><code>python\nimport numpy as np\n\n# \u4e00\u4e2a3\u884c2\u5217\u7684\u6570\u7ec4\narr = np.array([[1, 2], [3, 4], [5, 6]]) \nprint(arr.shape) # (3, 2)\n\n# shape[0] \u662f3,\u8868\u793a3\u884c\nprint(arr.shape[0]) # 3\n\n# shape[1] \u662f2,\u8868\u793a2\u5217\nprint(arr.shape[1]) # 2 \n\n# shape[-1] \u4e5f\u662f2,\u56e0\u4e3a\u6700\u540e\u4e00\u4e2a\u7ef4\u5ea6\u662f\u5217\u6570\nprint(arr.shape[-1]) # 2<\/code><\/pre>\n<p>\u6240\u4ee5\u5bf9\u4e00\u4e2an\u7ef4\u6570\u7ec4\u800c\u8a00:<\/p>\n<ul>\n<li>\n<p>shape[0]\u5230shape[n-2]\u8868\u793a\u6570\u7ec4\u6bcf\u4e2a\u7ef4\u5ea6\u7684\u5927\u5c0f<br \/>\n- shape[n-1]\u548cshape[-1]\u90fd\u8868\u793a\u6570\u7ec4\u6700\u540e\u4e00\u4e2a\u7ef4\u5ea6\u7684\u5927\u5c0f\u5728\u5f88\u591a\u60c5\u51b5\u4e0b,\u6211\u4eec\u4f1a\u5229\u7528shape[0]\u548cshape[1]\u6765\u83b7\u53d6\u6570\u7ec4\u7684\u884c\u5217\u5927\u5c0f,\u5229\u7528shape[-1]\u6765\u7edf\u4e00\u83b7\u53d6\u6700\u540e\u4e00\u4e2a\u7ef4\u5ea6\u7684\u5927\u5c0f\u3002<\/p>\n<p>\u6240\u4ee5\u8fd9\u4e09\u4e2a\u7684\u4e3b\u8981\u533a\u522b\u662f:<\/p>\n<ul>\n<li>\n<p>shape[0]\u548cshape[1]\u5206\u522b\u8868\u793a\u6570\u7ec4\u7684\u884c\u6570\u548c\u5217\u6570<\/p>\n<\/li>\n<li>\n<p>shape[-1]\u8868\u793a\u6570\u7ec4\u7684\u6700\u540e\u4e00\u7ef4\u7684\u5927\u5c0f,\u53ef\u4ee5\u7528\u4e8e\u4e0d\u786e\u5b9a\u6570\u7ec4\u7ef4\u5ea6\u60c5\u51b5\u4e0b\u83b7\u53d6\u6700\u540e\u4e00\u7ef4.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>\u6211\u4eec\u77e5\u9053shape\u51fd\u6570\u662fNumpy\u4e2d\u7684\u51fd\u6570,\u7528\u4e8e\u83b7\u53d6\u6570\u7ec4\u7684\u7ef4\u5ea6\u4fe1\u606f\uff1a<\/p>\n<p>\u5177\u4f53\u6765\u8bf4:<\/p>\n<ul>\n<li>\n<p>.shape \u53ef\u4ee5\u83b7\u53d6\u6570\u7ec4\u7684\u5b8c\u6574\u7ef4\u5ea6\u4fe1\u606f,\u4ee5\u5143\u7ec4\u7684\u5f62\u5f0f\u8fd4\u56de,\u6bd4\u5982(2, 3)\u8868\u793a2\u7ef4\u6570\u7ec4,\u67092\u884c3\u5217<\/p>\n<\/li>\n<li>\n<p>shape[0]\u8868\u793a\u6570\u7ec4\u7684\u7b2c\u4e00\u4e2a\u7ef4\u5ea6\u5927\u5c0f,\u901a\u5e38\u662f\u884c\u6570<\/p>\n<\/li>\n<li>\n<p>shape[1]\u8868\u793a\u6570\u7ec4\u7684\u7b2c\u4e8c\u4e2a\u7ef4\u5ea6\u5927\u5c0f,\u901a\u5e38\u662f\u5217\u6570<\/p>\n<\/li>\n<li>\n<p>shape[2]\u8868\u793a\u6570\u7ec4\u7684\u7b2c\u4e09\u4e2a\u7ef4\u5ea6\u5927\u5c0f,\u4f9d\u6b64\u7c7b\u63a8<\/p>\n<\/li>\n<li>\n<p>shape[-1]\u8868\u793a\u6570\u7ec4\u7684\u6700\u540e\u4e00\u4e2a\u7ef4\u5ea6\u5927\u5c0f,\u5bf9\u4efb\u4f55\u7ef4\u6570\u7ec4\u90fd\u8868\u793a\u6700\u540e\u4e00\u7ef4\u7684\u5927\u5c0f<\/p>\n<\/li>\n<li>\n<p>shape[-2], shape[-3]\u7b49\u8868\u793a\u5012\u6570\u7b2c\u4e8c,\u7b2c\u4e09\u4e2a\u7ef4\u5ea6\u7684\u5927\u5c0f<\/p>\n<p>\u4e3e\u51e0\u4e2a\u4f8b\u5b50:<\/p>\n<p>\u4e8c\u7ef4\u6570\u7ec4:<\/p>\n<\/li>\n<\/ul>\n<pre><code>python\nimport numpy as np\n\narr = np.array([[1, 2, 3], [4, 5, 6]])\nprint(arr.shape)     # (2, 3)\nprint(arr.shape[0])  # 2  \u884c\u6570\nprint(arr.shape[1])  # 3  \u5217\u6570\nprint(arr.shape[-1]) # 3  \u5217\u6570<\/code><\/pre>\n<p>\u4e09\u7ef4\u6570\u7ec4:<\/p>\n<pre><code>python\narr = np.array([[[1, 2, 3], [4, 5, 6]], [[7, 8, 9], [10, 11, 12]]])\nprint(arr.shape)     # (2, 2, 3)\nprint(arr.shape[0])  # 2   \u7b2c\u4e00\u4e2a\u7ef4\u5ea6\nprint(arr.shape[1])  # 2   \u7b2c\u4e8c\u4e2a\u7ef4\u5ea6  \nprint(arr.shape[2])  # 3   \u7b2c\u4e09\u4e2a\u7ef4\u5ea6<\/code><\/pre>\n<p>\u56fe\u50cf:<\/p>\n<pre><code>python\nimg = np.arange(12).reshape(3, 4)  \nprint(img.shape)     # (3, 4) \nprint(img.shape[0])  # 3   \u9ad8\nprint(img.shape[1])  # 4   \u5bbd\nprint(img.shape[-1]) # 4   \u5bbd<\/code><\/pre>\n<p>\u6240\u4ee5\u7efc\u4e0a,.shape \u4ee5\u53ca shape[] \u7684\u4e0b\u6807\u8bbf\u95ee\u662f\u83b7\u53d6Numpy\u6570\u7ec4\u7ef4\u5ea6\u4fe1\u606f\u7684\u91cd\u8981\u65b9\u5f0f,\u53ef\u4ee5\u7075\u6d3b\u4f7f\u7528 shape[0], shape[1], shape[-1]\u7b49\u6765\u83b7\u53d6\u5bf9\u5e94\u7ef4\u5ea6\u7684\u5927\u5c0f\u3002<\/p>\n<p>O(\u2229_\u2229)O\u54c8\u54c8~\uff0c\u4ee5\u540e\u6211\u4eec\u53ef\u8981\u6293\u7d27\u65f6\u95f4\u5b66\u4e60\uff0c\u522b\u5230\u65f6\u5019\u88ab\u5b66\u5f1f\u7ed9\u9119\u89c6\u4e86\uff0c\ud83d\ude00\u5de5\u4f5c\u8fd9\u4e48\u591a\u5e74\uff0c\u88ab\u8fd9\u4e2a\u95ee\u9898\u7ed9\u96be\u4f4f\u4e86\u54c8\u54c8<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u8a00 \u6700\u8fd1\u9879\u76ee\u5c0f\u4f19\u4f34\u95ee\u6211\u4e00\u4e0b\u95ee\u9898\uff0c\u628a\u6211\u96be\u4f4f\u4e86\uff0c\ud83d\ude00\uff0c \u8be6\u89e3 \u6211\u4eec\u77e5\u9053\u5728Python\u4e2d\u7684\u6570\u7ec4\u548c\u5f20\u91cf\u7684shape\u5c5e\u6027 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_mi_skip_tracking":false},"categories":[1],"tags":[],"aioseo_notices":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u4eca\u5929\u88ab\u5b66\u5f1f\u9119\u89c6\u4e86\u54c8\u54c8\uff0c\u8d76\u7d27\u5206\u4eab\uff1aPython\u4e2d\u7684shape[0]\u3001shape[1]\u548cshape[-1]\uff0c\u4f5c\u4e3a\u64b8\u4ee3\u780110\u591a\u5e74\u7684\u7801\u519c-Today, I was despised by my fellow students haha, hurry to share: shape[0], shape[1] and shape[-1] in Python, as a code farmer for more than 10 years - \u672c\u7f51\u7ad9\u5206\u4eab\u7f16\u7a0b\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u7684bug<\/title>\n<meta name=\"description\" content=\"Today, I was despised by my fellow students haha, hurry to share: shape[0], shape[1] and shape[-1] in Python, as a code farmer for more than 10 years\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/zhaocunwei.co.uk\/index.php\/2023\/05\/06\/code-farmer-for-more-than-10-years\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u4eca\u5929\u88ab\u5b66\u5f1f\u9119\u89c6\u4e86\u54c8\u54c8\uff0c\u8d76\u7d27\u5206\u4eab\uff1aPython\u4e2d\u7684shape[0]\u3001shape[1]\u548cshape[-1]\uff0c\u4f5c\u4e3a\u64b8\u4ee3\u780110\u591a\u5e74\u7684\u7801\u519c-Today, I was despised by my fellow students haha, hurry to share: shape[0], shape[1] and shape[-1] in Python, as a code farmer for more than 10 years - \u672c\u7f51\u7ad9\u5206\u4eab\u7f16\u7a0b\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u7684bug\" \/>\n<meta property=\"og:description\" content=\"Today, I was despised by my fellow students haha, hurry to share: shape[0], shape[1] and shape[-1] in Python, as a code farmer for more than 10 years\" \/>\n<meta property=\"og:url\" content=\"https:\/\/zhaocunwei.co.uk\/index.php\/2023\/05\/06\/code-farmer-for-more-than-10-years\/\" \/>\n<meta property=\"og:site_name\" content=\"\u672c\u7f51\u7ad9\u5206\u4eab\u7f16\u7a0b\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u7684bug\" \/>\n<meta property=\"article:published_time\" content=\"2023-05-06T07:35:19+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-05-06T07:49:05+00:00\" \/>\n<meta name=\"author\" content=\"\u603b\u662f\u5e78\u798f\u7684\u8001\u8c4c\u8c46\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u603b\u662f\u5e78\u798f\u7684\u8001\u8c4c\u8c46\" \/>\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:\/\/zhaocunwei.co.uk\/index.php\/2023\/05\/06\/code-farmer-for-more-than-10-years\/\",\"url\":\"https:\/\/zhaocunwei.co.uk\/index.php\/2023\/05\/06\/code-farmer-for-more-than-10-years\/\",\"name\":\"\u4eca\u5929\u88ab\u5b66\u5f1f\u9119\u89c6\u4e86\u54c8\u54c8\uff0c\u8d76\u7d27\u5206\u4eab\uff1aPython\u4e2d\u7684shape[0]\u3001shape[1]\u548cshape[-1]\uff0c\u4f5c\u4e3a\u64b8\u4ee3\u780110\u591a\u5e74\u7684\u7801\u519c-Today, I was despised by my fellow students haha, hurry to share: shape[0], shape[1] and shape[-1] in Python, as a code farmer for more than 10 years - \u672c\u7f51\u7ad9\u5206\u4eab\u7f16\u7a0b\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u7684bug\",\"isPartOf\":{\"@id\":\"https:\/\/zhaocunwei.co.uk\/#website\"},\"datePublished\":\"2023-05-06T07:35:19+00:00\",\"dateModified\":\"2023-05-06T07:49:05+00:00\",\"author\":{\"@id\":\"https:\/\/zhaocunwei.co.uk\/#\/schema\/person\/dfb1dc0fc4a330c41908d477cd99c0b4\"},\"description\":\"Today, I was despised by my fellow students haha, hurry to share: shape[0], shape[1] and shape[-1] in Python, as a code farmer for more than 10 years\",\"breadcrumb\":{\"@id\":\"https:\/\/zhaocunwei.co.uk\/index.php\/2023\/05\/06\/code-farmer-for-more-than-10-years\/#breadcrumb\"},\"inLanguage\":\"zh-CN\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/zhaocunwei.co.uk\/index.php\/2023\/05\/06\/code-farmer-for-more-than-10-years\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/zhaocunwei.co.uk\/index.php\/2023\/05\/06\/code-farmer-for-more-than-10-years\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/zhaocunwei.co.uk\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u4eca\u5929\u88ab\u5b66\u5f1f\u9119\u89c6\u4e86\u54c8\u54c8\uff0c\u8d76\u7d27\u5206\u4eab\uff1aPython\u4e2d\u7684shape[0]\u3001shape[1]\u548cshape[-1]\uff0c\u4f5c\u4e3a\u64b8\u4ee3\u780110\u591a\u5e74\u7684\u7801\u519c-Today, I was despised by my fellow students haha, hurry to share: shape[0], shape[1] and shape[-1] in Python, as a code farmer for more than 10 years\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/zhaocunwei.co.uk\/#website\",\"url\":\"https:\/\/zhaocunwei.co.uk\/\",\"name\":\"\u672c\u7f51\u7ad9\u5206\u4eab\u7f16\u7a0b\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u7684bug\",\"description\":\"This site shares programming bugs\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/zhaocunwei.co.uk\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-CN\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/zhaocunwei.co.uk\/#\/schema\/person\/dfb1dc0fc4a330c41908d477cd99c0b4\",\"name\":\"\u603b\u662f\u5e78\u798f\u7684\u8001\u8c4c\u8c46\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-CN\",\"@id\":\"https:\/\/zhaocunwei.co.uk\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/4226cc1ca6640507df1d2d4ba3da7a62?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/4226cc1ca6640507df1d2d4ba3da7a62?s=96&d=mm&r=g\",\"caption\":\"\u603b\u662f\u5e78\u798f\u7684\u8001\u8c4c\u8c46\"},\"sameAs\":[\"http:\/\/zhaocunwei.co.uk\"],\"url\":\"https:\/\/zhaocunwei.co.uk\/index.php\/author\/18500103508163-com\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u4eca\u5929\u88ab\u5b66\u5f1f\u9119\u89c6\u4e86\u54c8\u54c8\uff0c\u8d76\u7d27\u5206\u4eab\uff1aPython\u4e2d\u7684shape[0]\u3001shape[1]\u548cshape[-1]\uff0c\u4f5c\u4e3a\u64b8\u4ee3\u780110\u591a\u5e74\u7684\u7801\u519c-Today, I was despised by my fellow students haha, hurry to share: shape[0], shape[1] and shape[-1] in Python, as a code farmer for more than 10 years - \u672c\u7f51\u7ad9\u5206\u4eab\u7f16\u7a0b\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u7684bug","description":"Today, I was despised by my fellow students haha, hurry to share: shape[0], shape[1] and shape[-1] in Python, as a code farmer for more than 10 years","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:\/\/zhaocunwei.co.uk\/index.php\/2023\/05\/06\/code-farmer-for-more-than-10-years\/","og_locale":"zh_CN","og_type":"article","og_title":"\u4eca\u5929\u88ab\u5b66\u5f1f\u9119\u89c6\u4e86\u54c8\u54c8\uff0c\u8d76\u7d27\u5206\u4eab\uff1aPython\u4e2d\u7684shape[0]\u3001shape[1]\u548cshape[-1]\uff0c\u4f5c\u4e3a\u64b8\u4ee3\u780110\u591a\u5e74\u7684\u7801\u519c-Today, I was despised by my fellow students haha, hurry to share: shape[0], shape[1] and shape[-1] in Python, as a code farmer for more than 10 years - \u672c\u7f51\u7ad9\u5206\u4eab\u7f16\u7a0b\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u7684bug","og_description":"Today, I was despised by my fellow students haha, hurry to share: shape[0], shape[1] and shape[-1] in Python, as a code farmer for more than 10 years","og_url":"https:\/\/zhaocunwei.co.uk\/index.php\/2023\/05\/06\/code-farmer-for-more-than-10-years\/","og_site_name":"\u672c\u7f51\u7ad9\u5206\u4eab\u7f16\u7a0b\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u7684bug","article_published_time":"2023-05-06T07:35:19+00:00","article_modified_time":"2023-05-06T07:49:05+00:00","author":"\u603b\u662f\u5e78\u798f\u7684\u8001\u8c4c\u8c46","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u603b\u662f\u5e78\u798f\u7684\u8001\u8c4c\u8c46","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/zhaocunwei.co.uk\/index.php\/2023\/05\/06\/code-farmer-for-more-than-10-years\/","url":"https:\/\/zhaocunwei.co.uk\/index.php\/2023\/05\/06\/code-farmer-for-more-than-10-years\/","name":"\u4eca\u5929\u88ab\u5b66\u5f1f\u9119\u89c6\u4e86\u54c8\u54c8\uff0c\u8d76\u7d27\u5206\u4eab\uff1aPython\u4e2d\u7684shape[0]\u3001shape[1]\u548cshape[-1]\uff0c\u4f5c\u4e3a\u64b8\u4ee3\u780110\u591a\u5e74\u7684\u7801\u519c-Today, I was despised by my fellow students haha, hurry to share: shape[0], shape[1] and shape[-1] in Python, as a code farmer for more than 10 years - \u672c\u7f51\u7ad9\u5206\u4eab\u7f16\u7a0b\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u7684bug","isPartOf":{"@id":"https:\/\/zhaocunwei.co.uk\/#website"},"datePublished":"2023-05-06T07:35:19+00:00","dateModified":"2023-05-06T07:49:05+00:00","author":{"@id":"https:\/\/zhaocunwei.co.uk\/#\/schema\/person\/dfb1dc0fc4a330c41908d477cd99c0b4"},"description":"Today, I was despised by my fellow students haha, hurry to share: shape[0], shape[1] and shape[-1] in Python, as a code farmer for more than 10 years","breadcrumb":{"@id":"https:\/\/zhaocunwei.co.uk\/index.php\/2023\/05\/06\/code-farmer-for-more-than-10-years\/#breadcrumb"},"inLanguage":"zh-CN","potentialAction":[{"@type":"ReadAction","target":["https:\/\/zhaocunwei.co.uk\/index.php\/2023\/05\/06\/code-farmer-for-more-than-10-years\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/zhaocunwei.co.uk\/index.php\/2023\/05\/06\/code-farmer-for-more-than-10-years\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/zhaocunwei.co.uk\/"},{"@type":"ListItem","position":2,"name":"\u4eca\u5929\u88ab\u5b66\u5f1f\u9119\u89c6\u4e86\u54c8\u54c8\uff0c\u8d76\u7d27\u5206\u4eab\uff1aPython\u4e2d\u7684shape[0]\u3001shape[1]\u548cshape[-1]\uff0c\u4f5c\u4e3a\u64b8\u4ee3\u780110\u591a\u5e74\u7684\u7801\u519c-Today, I was despised by my fellow students haha, hurry to share: shape[0], shape[1] and shape[-1] in Python, as a code farmer for more than 10 years"}]},{"@type":"WebSite","@id":"https:\/\/zhaocunwei.co.uk\/#website","url":"https:\/\/zhaocunwei.co.uk\/","name":"\u672c\u7f51\u7ad9\u5206\u4eab\u7f16\u7a0b\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u7684bug","description":"This site shares programming bugs","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/zhaocunwei.co.uk\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-CN"},{"@type":"Person","@id":"https:\/\/zhaocunwei.co.uk\/#\/schema\/person\/dfb1dc0fc4a330c41908d477cd99c0b4","name":"\u603b\u662f\u5e78\u798f\u7684\u8001\u8c4c\u8c46","image":{"@type":"ImageObject","inLanguage":"zh-CN","@id":"https:\/\/zhaocunwei.co.uk\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/4226cc1ca6640507df1d2d4ba3da7a62?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4226cc1ca6640507df1d2d4ba3da7a62?s=96&d=mm&r=g","caption":"\u603b\u662f\u5e78\u798f\u7684\u8001\u8c4c\u8c46"},"sameAs":["http:\/\/zhaocunwei.co.uk"],"url":"https:\/\/zhaocunwei.co.uk\/index.php\/author\/18500103508163-com\/"}]}},"_links":{"self":[{"href":"https:\/\/zhaocunwei.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/467"}],"collection":[{"href":"https:\/\/zhaocunwei.co.uk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zhaocunwei.co.uk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zhaocunwei.co.uk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/zhaocunwei.co.uk\/index.php\/wp-json\/wp\/v2\/comments?post=467"}],"version-history":[{"count":1,"href":"https:\/\/zhaocunwei.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/467\/revisions"}],"predecessor-version":[{"id":468,"href":"https:\/\/zhaocunwei.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/467\/revisions\/468"}],"wp:attachment":[{"href":"https:\/\/zhaocunwei.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=467"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zhaocunwei.co.uk\/index.php\/wp-json\/wp\/v2\/categories?post=467"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zhaocunwei.co.uk\/index.php\/wp-json\/wp\/v2\/tags?post=467"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}