{"id":77965,"date":"2026-02-25T20:26:03","date_gmt":"2026-02-25T12:26:03","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/77965.html"},"modified":"2026-02-25T20:26:03","modified_gmt":"2026-02-25T12:26:03","slug":"%e6%b7%b1%e5%85%a5%e7%90%86%e8%a7%a3-numpy-%e4%b8%ad%e6%95%b0%e7%bb%84%e7%9a%84%e6%8b%bc%e6%8e%a5%ef%bc%88concatenation%ef%bc%89","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/77965.html","title":{"rendered":"\u6df1\u5165\u7406\u89e3 NumPy \u4e2d\u6570\u7ec4\u7684\u62fc\u63a5\uff08Concatenation\uff09"},"content":{"rendered":"<h4>\u4e00\u3001\u6570\u7ec4\u62fc\u63a5\u7684\u6838\u5fc3\u5b9a\u4e49<\/h4>\n<p>\u6570\u7ec4\u62fc\u63a5\u662f\u6307\u5c06\u591a\u4e2a\u5f62\u72b6\u517c\u5bb9\u7684\u6570\u7ec4&#xff0c;\u6cbf\u7740\u6307\u5b9a\u7684\u8f74&#xff08;axis&#xff09; \u5408\u5e76\u4e3a\u4e00\u4e2a\u65b0\u6570\u7ec4&#xff1a;<\/p>\n<ul>\n<li>\u8f74&#xff08;axis&#xff09;&#xff1a;\u62fc\u63a5\u7684\u65b9\u5411&#xff0c;\u4e8c\u7ef4\u6570\u7ec4\u4e2d axis&#061;0 \u8868\u793a\u6309\u884c\u62fc\u63a5&#xff08;\u5782\u76f4\u65b9\u5411&#xff09;&#xff0c;axis&#061;1 \u8868\u793a\u6309\u5217\u62fc\u63a5&#xff08;\u6c34\u5e73\u65b9\u5411&#xff09;&#xff1b;<\/li>\n<li>\u5f62\u72b6\u517c\u5bb9&#xff1a;\u9664\u62fc\u63a5\u8f74\u5916&#xff0c;\u5176\u4ed6\u7ef4\u5ea6\u7684\u5927\u5c0f\u5fc5\u987b\u5b8c\u5168\u4e00\u81f4&#xff08;\u6bd4\u5982\u6309\u884c\u62fc\u63a5\u65f6&#xff0c;\u6240\u6709\u6570\u7ec4\u7684\u5217\u6570\u5fc5\u987b\u76f8\u540c&#xff09;&#xff1b;<\/li>\n<li>\u6838\u5fc3\u51fd\u6570&#xff1a;np.concatenate()&#xff08;\u901a\u7528\u62fc\u63a5&#xff09;\u3001np.vstack()&#xff08;\u5782\u76f4\u62fc\u63a5&#xff09;\u3001np.hstack()&#xff08;\u6c34\u5e73\u62fc\u63a5&#xff09;\u3001np.dstack()&#xff08;\u6df1\u5ea6\u62fc\u63a5&#xff09;\u3002<\/li>\n<\/ul>\n<h4>\u4e8c\u3001\u6838\u5fc3\u62fc\u63a5\u51fd\u6570&#xff08;\u5206\u7c7b\u8bb2\u89e3&#xff09;<\/h4>\n<p>NumPy \u63d0\u4f9b\u4e86\u591a\u4e2a\u62fc\u63a5\u51fd\u6570&#xff0c;\u5176\u4e2d np.concatenate() \u662f\u6700\u901a\u7528\u7684\u5e95\u5c42\u51fd\u6570&#xff0c;\u5176\u4ed6 vstack\/hstack \u662f\u5176\u7b80\u5316\u7248&#xff08;\u65e0\u9700\u6307\u5b9a\u8f74&#xff09;\u3002<\/p>\n<h5>1. \u901a\u7528\u62fc\u63a5&#xff1a;np.concatenate ()&#xff08;\u6838\u5fc3&#xff09;<\/h5>\n<p>\u8bed\u6cd5&#xff1a;<\/p>\n<p>python<\/p>\n<p>\u8fd0\u884c<\/p>\n<p>np.concatenate((arr1, arr2, &#8230;), axis&#061;0, out&#061;None)<\/p>\n<ul>\n<li>(arr1, arr2, &#8230;)&#xff1a;\u5f85\u62fc\u63a5\u7684\u6570\u7ec4\u5143\u7ec4&#xff08;\u5fc5\u987b\u7528\u5143\u7ec4 \/ \u5217\u8868\u5305\u88f9&#xff0c;\u4e0d\u80fd\u76f4\u63a5\u4f20\u591a\u4e2a\u6570\u7ec4&#xff09;&#xff1b;<\/li>\n<li>axis&#xff1a;\u62fc\u63a5\u8f74&#xff08;\u9ed8\u8ba4 0&#xff09;&#xff0c;\u4e00\u7ef4\u6570\u7ec4\u53ea\u80fd\u7528 axis&#061;0&#xff1b;<\/li>\n<li>out&#xff1a;\u53ef\u9009&#xff0c;\u6307\u5b9a\u8f93\u51fa\u6570\u7ec4&#xff08;\u4e00\u822c\u4e0d\u7528&#xff09;&#xff1b;<\/li>\n<li>\u8fd4\u56de\u503c&#xff1a;\u65b0\u6570\u7ec4&#xff08;\u62fc\u63a5\u540e\u7684\u7ed3\u679c&#xff0c;\u72ec\u7acb\u5185\u5b58&#xff0c;\u4e0d\u5171\u4eab\u539f\u6570\u7ec4\u6570\u636e&#xff09;\u3002<\/li>\n<\/ul>\n<h6>\u793a\u4f8b 1&#xff1a;\u4e00\u7ef4\u6570\u7ec4\u5408\u5e76&#xff08;\u6700\u57fa\u7840&#xff09;<\/h6>\n<p>python<\/p>\n<p>import numpy as np<\/p>\n<p># \u4e24\u4e2a\u4e00\u7ef4\u6570\u7ec4&#xff08;\u6a21\u62df\u4e24\u4e2a\u73ed\u7ea7\u7684\u5b66\u751f\u5206\u6570&#xff09;<br \/>\nclass1 &#061; np.array([85, 92, 78, 90])<br \/>\nclass2 &#061; np.array([88, 76, 95, 81])<\/p>\n<p># \u62fc\u63a5\u4e3a\u4e00\u4e2a\u4e00\u7ef4\u6570\u7ec4&#xff08;axis&#061;0&#xff0c;\u552f\u4e00\u53ef\u9009&#xff09;<br \/>\nall_scores &#061; np.concatenate((class1, class2))<br \/>\nprint(&#034;\u62fc\u63a5\u540e\u4e00\u7ef4\u6570\u7ec4&#xff1a;&#034;, all_scores)  # [85 92 78 90 88 76 95 81]<br \/>\nprint(&#034;\u62fc\u63a5\u540e\u5f62\u72b6&#xff1a;&#034;, all_scores.shape)  # (8,)<\/p>\n<h6>\u793a\u4f8b 2&#xff1a;\u4e8c\u7ef4\u6570\u7ec4\u6309\u884c\u62fc\u63a5&#xff08;axis&#061;0&#xff09;<\/h6>\n<p>\u6309\u884c\u62fc\u63a5\u8981\u6c42\u6240\u6709\u6570\u7ec4\u7684\u5217\u6570\u76f8\u540c&#xff08;\u5782\u76f4\u65b9\u5411\u5806\u53e0&#xff09;&#xff1a;<\/p>\n<p>python\u00a0<\/p>\n<p>import numpy as np<\/p>\n<p># \u4e24\u4e2a\u4e8c\u7ef4\u6570\u7ec4&#xff08;\u5217\u6570\u5747\u4e3a3&#xff09;<br \/>\narr1 &#061; np.array([[1, 2, 3], [4, 5, 6]])  # 2\u884c3\u5217<br \/>\narr2 &#061; np.array([[7, 8, 9], [10, 11, 12]])  # 2\u884c3\u5217<\/p>\n<p># \u6309\u884c\u62fc\u63a5&#xff08;axis&#061;0&#xff09;\u2192 4\u884c3\u5217<br \/>\narr_v &#061; np.concatenate((arr1, arr2), axis&#061;0)<br \/>\nprint(&#034;\u6309\u884c\u62fc\u63a5\u7ed3\u679c&#xff1a;\\\\n&#034;, arr_v)<br \/>\nprint(&#034;\u62fc\u63a5\u540e\u5f62\u72b6&#xff1a;&#034;, arr_v.shape)  # (4, 3)<\/p>\n<p>\u8f93\u51fa&#xff1a;<\/p>\n<p>plaintext<\/p>\n<p>\u6309\u884c\u62fc\u63a5\u7ed3\u679c&#xff1a;<br \/>\n [[ 1  2  3]<br \/>\n [ 4  5  6]<br \/>\n [ 7  8  9]<br \/>\n [10 11 12]]<br \/>\n\u62fc\u63a5\u540e\u5f62\u72b6&#xff1a; (4, 3)<\/p>\n<h6>\u793a\u4f8b 3&#xff1a;\u4e8c\u7ef4\u6570\u7ec4\u6309\u5217\u62fc\u63a5&#xff08;axis&#061;1&#xff09;<\/h6>\n<p>\u6309\u5217\u62fc\u63a5\u8981\u6c42\u6240\u6709\u6570\u7ec4\u7684\u884c\u6570\u76f8\u540c&#xff08;\u6c34\u5e73\u65b9\u5411\u62fc\u63a5&#xff09;&#xff1a;<\/p>\n<p>python<\/p>\n<p>import numpy as np<\/p>\n<p># \u4e24\u4e2a\u4e8c\u7ef4\u6570\u7ec4&#xff08;\u884c\u6570\u5747\u4e3a2&#xff09;<br \/>\narr1 &#061; np.array([[1, 2], [3, 4]])  # 2\u884c2\u5217<br \/>\narr2 &#061; np.array([[5, 6], [7, 8]])  # 2\u884c2\u5217<br \/>\narr3 &#061; np.array([[9], [10]])       # 2\u884c1\u5217<\/p>\n<p># \u6309\u5217\u62fc\u63a5&#xff08;axis&#061;1&#xff09;\u2192 2\u884c5\u5217&#xff08;2&#043;2&#043;1&#xff09;<br \/>\narr_h &#061; np.concatenate((arr1, arr2, arr3), axis&#061;1)<br \/>\nprint(&#034;\u6309\u5217\u62fc\u63a5\u7ed3\u679c&#xff1a;\\\\n&#034;, arr_h)<br \/>\nprint(&#034;\u62fc\u63a5\u540e\u5f62\u72b6&#xff1a;&#034;, arr_h.shape)  # (2, 5)<\/p>\n<p>\u8f93\u51fa&#xff1a;<\/p>\n<p>plaintext<\/p>\n<p>\u6309\u5217\u62fc\u63a5\u7ed3\u679c&#xff1a;<br \/>\n [[ 1  2  5  6  9]<br \/>\n [ 3  4  7  8 10]]<br \/>\n\u62fc\u63a5\u540e\u5f62\u72b6&#xff1a; (2, 5)<\/p>\n<h5>2. \u7b80\u5316\u62fc\u63a5\u51fd\u6570&#xff08;\u66f4\u76f4\u89c2&#xff09;<\/h5>\n<p>\u4e3a\u4e86\u907f\u514d\u8bb0\u9519 axis \u53c2\u6570&#xff0c;NumPy \u63d0\u4f9b\u4e86\u66f4\u8d34\u5408\u8bed\u4e49\u7684\u7b80\u5316\u51fd\u6570&#xff1a;<\/p>\n<p>\u8868\u683c<\/p>\n<table>\n<tr>\u51fd\u6570\u4f5c\u7528\u7b49\u4ef7\u4e8e\u9002\u7528\u573a\u666f<\/tr>\n<tbody>\n<tr>\n<td>np.vstack()<\/td>\n<td>\u5782\u76f4\u62fc\u63a5&#xff08;\u6309\u884c&#xff09;<\/td>\n<td>np.concatenate(&#8230;, axis&#061;0)<\/td>\n<td>\u4e00\u7ef4 \/ \u4e8c\u7ef4\u6570\u7ec4\u6309\u884c\u5806\u53e0<\/td>\n<\/tr>\n<tr>\n<td>np.hstack()<\/td>\n<td>\u6c34\u5e73\u62fc\u63a5&#xff08;\u6309\u5217&#xff09;<\/td>\n<td>np.concatenate(&#8230;, axis&#061;1)<\/td>\n<td>\u4e00\u7ef4 \/ \u4e8c\u7ef4\u6570\u7ec4\u6309\u5217\u62fc\u63a5<\/td>\n<\/tr>\n<tr>\n<td>np.dstack()<\/td>\n<td>\u6df1\u5ea6\u62fc\u63a5&#xff08;\u6309\u7b2c\u4e09\u4e2a\u7ef4\u5ea6&#xff09;<\/td>\n<td>np.concatenate(&#8230;, axis&#061;2)<\/td>\n<td>\u4e09\u7ef4\u6570\u7ec4\u62fc\u63a5<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h6>\u793a\u4f8b&#xff1a;vstack\/hstack \u7b80\u5316\u64cd\u4f5c<\/h6>\n<p>python<\/p>\n<p>import numpy as np<\/p>\n<p># \u4e8c\u7ef4\u6570\u7ec4<br \/>\narr1 &#061; np.array([[1,2],[3,4]])<br \/>\narr2 &#061; np.array([[5,6],[7,8]])<\/p>\n<p># \u5782\u76f4\u62fc\u63a5&#xff08;\u7b49\u4ef7\u4e8e axis&#061;0&#xff09;<br \/>\narr_v &#061; np.vstack((arr1, arr2))<br \/>\nprint(&#034;vstack\u7ed3\u679c&#xff1a;\\\\n&#034;, arr_v)  # 4\u884c2\u5217<\/p>\n<p># \u6c34\u5e73\u62fc\u63a5&#xff08;\u7b49\u4ef7\u4e8e axis&#061;1&#xff09;<br \/>\narr_h &#061; np.hstack((arr1, arr2))<br \/>\nprint(&#034;hstack\u7ed3\u679c&#xff1a;\\\\n&#034;, arr_h)  # 2\u884c4\u5217<\/p>\n<h6>\u793a\u4f8b&#xff1a;\u4e00\u7ef4\u6570\u7ec4\u7684 hstack\/vstack \u7279\u6b8a\u5904\u7406<\/h6>\n<p>\u4e00\u7ef4\u6570\u7ec4\u7528 hstack\/vstack \u4f1a\u81ea\u52a8\u8c03\u6574\u7ef4\u5ea6&#xff1a;<\/p>\n<p>python<\/p>\n<p>import numpy as np<\/p>\n<p>a &#061; np.array([1,2,3])  # \u5f62\u72b6(3,)<br \/>\nb &#061; np.array([4,5,6])  # \u5f62\u72b6(3,)<\/p>\n<p># vstack&#xff1a;\u4e00\u7ef4\u6570\u7ec4\u5408\u5e76\u4e3a\u4e8c\u7ef4&#xff08;\u6309\u884c&#xff09;\u2192 (2,3)<br \/>\nv_arr &#061; np.vstack((a, b))<br \/>\nprint(&#034;vstack\u4e00\u7ef4\u6570\u7ec4&#xff1a;\\\\n&#034;, v_arr)<br \/>\nprint(&#034;\u5f62\u72b6&#xff1a;&#034;, v_arr.shape)  # (2,3)<\/p>\n<p># hstack&#xff1a;\u4e00\u7ef4\u6570\u7ec4\u5408\u5e76\u4e3a\u66f4\u957f\u7684\u4e00\u7ef4 \u2192 (6,)<br \/>\nh_arr &#061; np.hstack((a, b))<br \/>\nprint(&#034;hstack\u4e00\u7ef4\u6570\u7ec4&#xff1a;&#034;, h_arr)<br \/>\nprint(&#034;\u5f62\u72b6&#xff1a;&#034;, h_arr.shape)  # (6,)<\/p>\n<h5>3. \u6df1\u5ea6\u62fc\u63a5&#xff1a;np.dstack ()&#xff08;\u4e09\u7ef4\u6570\u7ec4&#xff09;<\/h5>\n<p>\u6309\u7b2c\u4e09\u4e2a\u7ef4\u5ea6&#xff08;\u6df1\u5ea6&#xff09;\u62fc\u63a5&#xff0c;\u9002\u7528\u4e8e\u56fe\u50cf\u3001\u4e09\u7ef4\u6570\u636e&#xff1a;<\/p>\n<p>python<\/p>\n<p>import numpy as np<\/p>\n<p># \u4e24\u4e2a\u4e8c\u7ef4\u6570\u7ec4&#xff08;\u5f62\u72b6\u5747\u4e3a(2,3)&#xff09;<br \/>\narr1 &#061; np.array([[1,2,3],[4,5,6]])<br \/>\narr2 &#061; np.array([[7,8,9],[10,11,12]])<\/p>\n<p># \u6df1\u5ea6\u62fc\u63a5 \u2192 \u5f62\u72b6(2,3,2)<br \/>\nd_arr &#061; np.dstack((arr1, arr2))<br \/>\nprint(&#034;dstack\u7ed3\u679c\u5f62\u72b6&#xff1a;&#034;, d_arr.shape)  # (2,3,2)<br \/>\nprint(&#034;dstack\u7ed3\u679c[0,0,:]&#xff1a;&#034;, d_arr[0,0,:])  # [1,7]&#xff08;\u6df1\u5ea6\u7ef4\u5ea6\u7684\u4e24\u4e2a\u503c&#xff09;<\/p>\n<h4>\u4e09\u3001\u9ad8\u7ef4\u6570\u7ec4\u62fc\u63a5&#xff08;\u8fdb\u9636&#xff09;<\/h4>\n<p>\u9ad8\u7ef4\u6570\u7ec4\u62fc\u63a5\u7684\u6838\u5fc3\u662f\u660e\u786e\u62fc\u63a5\u8f74\u7684\u7f16\u53f7&#xff0c;\u7ef4\u5ea6\u7f16\u53f7\u4ece 0 \u5f00\u59cb&#xff1a;<\/p>\n<ul>\n<li>\u4e09\u7ef4\u6570\u7ec4\u5f62\u72b6 (a,b,c) \u2192 \u8f74 0&#061;a\u3001\u8f74 1&#061;b\u3001\u8f74 2&#061;c&#xff1b;<\/li>\n<li>\u62fc\u63a5\u65f6&#xff0c;\u9664\u62fc\u63a5\u8f74\u5916&#xff0c;\u5176\u4ed6\u7ef4\u5ea6\u5927\u5c0f\u5fc5\u987b\u4e00\u81f4\u3002<\/li>\n<\/ul>\n<h5>\u793a\u4f8b&#xff1a;\u4e09\u7ef4\u6570\u7ec4\u62fc\u63a5<\/h5>\n<p>python<\/p>\n<p>import numpy as np<\/p>\n<p># \u4e24\u4e2a\u4e09\u7ef4\u6570\u7ec4&#xff1a;\u5f62\u72b6(2,3,4)&#xff08;\u8f740&#061;2&#xff0c;\u8f741&#061;3&#xff0c;\u8f742&#061;4&#xff09;<br \/>\narr1 &#061; np.arange(24).reshape(2,3,4)<br \/>\narr2 &#061; np.arange(24,48).reshape(2,3,4)<\/p>\n<p># \u6309\u8f740\u62fc\u63a5 \u2192 \u5f62\u72b6(4,3,4)<br \/>\nconcat0 &#061; np.concatenate((arr1, arr2), axis&#061;0)<br \/>\nprint(&#034;\u6309\u8f740\u62fc\u63a5\u5f62\u72b6&#xff1a;&#034;, concat0.shape)  # (4,3,4)<\/p>\n<p># \u6309\u8f741\u62fc\u63a5 \u2192 \u5f62\u72b6(2,6,4)<br \/>\nconcat1 &#061; np.concatenate((arr1, arr2), axis&#061;1)<br \/>\nprint(&#034;\u6309\u8f741\u62fc\u63a5\u5f62\u72b6&#xff1a;&#034;, concat1.shape)  # (2,6,4)<\/p>\n<p># \u6309\u8f742\u62fc\u63a5 \u2192 \u5f62\u72b6(2,3,8)<br \/>\nconcat2 &#061; np.concatenate((arr1, arr2), axis&#061;2)<br \/>\nprint(&#034;\u6309\u8f742\u62fc\u63a5\u5f62\u72b6&#xff1a;&#034;, concat2.shape)  # (2,3,8)<\/p>\n<h4>\u56db\u3001\u62fc\u63a5\u7684\u517c\u5bb9\u6027\u89c4\u5219&#xff08;\u6838\u5fc3\u907f\u5751&#xff01;&#xff09;<\/h4>\n<p>\u62fc\u63a5\u5931\u8d25\u7684\u552f\u4e00\u539f\u56e0\u662f\u5f62\u72b6\u4e0d\u517c\u5bb9&#xff0c;\u9700\u7262\u8bb0&#xff1a;<\/p>\n<p>\u9664\u62fc\u63a5\u8f74\u5916&#xff0c;\u5176\u4ed6\u6240\u6709\u7ef4\u5ea6\u7684\u5927\u5c0f\u5fc5\u987b\u5b8c\u5168\u4e00\u81f4\u3002<\/p>\n<h5>\u793a\u4f8b&#xff1a;\u4e0d\u517c\u5bb9\u7684\u62fc\u63a5&#xff08;\u62a5\u9519&#xff09;<\/h5>\n<p>python<\/p>\n<p>import numpy as np<\/p>\n<p># \u9519\u8bef1&#xff1a;\u6309\u884c\u62fc\u63a5&#xff08;axis&#061;0&#xff09;\u4f46\u5217\u6570\u4e0d\u540c<br \/>\narr1 &#061; np.array([[1,2],[3,4]])  # 2\u884c2\u5217<br \/>\narr2 &#061; np.array([[5,6,7],[8,9,10]])  # 2\u884c3\u5217<br \/>\ntry:<br \/>\n    np.concatenate((arr1, arr2), axis&#061;0)<br \/>\nexcept ValueError as e:<br \/>\n    print(&#034;\u62a5\u95191&#xff1a;&#034;, e)  # all the input array dimensions except for the concatenation axis must match exactly<\/p>\n<p># \u9519\u8bef2&#xff1a;\u6309\u5217\u62fc\u63a5&#xff08;axis&#061;1&#xff09;\u4f46\u884c\u6570\u4e0d\u540c<br \/>\narr3 &#061; np.array([[1,2],[3,4]])  # 2\u884c2\u5217<br \/>\narr4 &#061; np.array([[5,6]])        # 1\u884c2\u5217<br \/>\ntry:<br \/>\n    np.concatenate((arr3, arr4), axis&#061;1)<br \/>\nexcept ValueError as e:<br \/>\n    print(&#034;\u62a5\u95192&#xff1a;&#034;, e)<\/p>\n<h5>\u89e3\u51b3\u65b9\u6cd5&#xff1a;\u8c03\u6574\u6570\u7ec4\u5f62\u72b6&#xff08;reshape\/expand_dims&#xff09;<\/h5>\n<p>\u901a\u8fc7 reshape \u6216 np.expand_dims \u8ba9\u6570\u7ec4\u5f62\u72b6\u517c\u5bb9&#xff1a;<\/p>\n<p>python<\/p>\n<p>import numpy as np<\/p>\n<p># \u539f\u6570\u7ec4&#xff1a;arr4\u662f(1,2)&#xff0c;\u884c\u6570\u4e3a1&#xff08;arr3\u884c\u6570\u4e3a2&#xff0c;\u4e0d\u517c\u5bb9&#xff09;<br \/>\narr3 &#061; np.array([[1,2],[3,4]])<br \/>\narr4 &#061; np.array([[5,6]])<\/p>\n<p># \u65b9\u6cd51&#xff1a;\u7ed9arr4\u6dfb\u52a0\u4e00\u884c&#xff08;\u88650&#xff09;<br \/>\narr4_exp &#061; np.vstack((arr4, [[0,0]]))  # \u53d8\u4e3a2\u884c2\u5217<br \/>\nconcat_ok &#061; np.concatenate((arr3, arr4_exp), axis&#061;1)<br \/>\nprint(&#034;\u8c03\u6574\u540e\u62fc\u63a5\u7ed3\u679c&#xff1a;\\\\n&#034;, concat_ok)<\/p>\n<p># \u65b9\u6cd52&#xff1a;\u6269\u5c55\u7ef4\u5ea6&#xff08;\u4e00\u7ef4\u2192\u4e8c\u7ef4&#xff09;<br \/>\na &#061; np.array([1,2,3])  # (3,)<br \/>\nb &#061; np.array([[4,5,6]]) # (1,3)<br \/>\n# \u5148\u5c06a\u8f6c\u4e3a(1,3)&#xff0c;\u518d\u6309\u884c\u62fc\u63a5<br \/>\na_2d &#061; np.expand_dims(a, axis&#061;0)  # (1,3)<br \/>\nconcat_a_b &#061; np.concatenate((a_2d, b), axis&#061;0)<br \/>\nprint(&#034;\u4e00\u7ef4\u8f6c\u4e8c\u7ef4\u540e\u62fc\u63a5&#xff1a;\\\\n&#034;, concat_a_b)<\/p>\n<h4>\u4e94\u3001\u5e38\u89c1\u5e94\u7528\u573a\u666f<\/h4>\n<h5>\u573a\u666f 1&#xff1a;\u5408\u5e76\u591a\u7ec4\u6570\u636e&#xff08;\u673a\u5668\u5b66\u4e60\u6570\u636e\u96c6&#xff09;<\/h5>\n<p>python<\/p>\n<p>import numpy as np<\/p>\n<p># \u6a21\u62df3\u7ec4\u7279\u5f81\u6570\u636e&#xff08;\u6bcf\u7ec410\u4e2a\u6837\u672c\u00d75\u4e2a\u7279\u5f81&#xff09;<br \/>\nfeat1 &#061; np.random.rand(10,5)<br \/>\nfeat2 &#061; np.random.rand(10,5)<br \/>\nfeat3 &#061; np.random.rand(10,5)<\/p>\n<p># \u5408\u5e76\u4e3a30\u4e2a\u6837\u672c\u7684\u6570\u636e\u96c6&#xff08;\u6309\u884c\u62fc\u63a5&#xff09;<br \/>\nall_feat &#061; np.concatenate((feat1, feat2, feat3), axis&#061;0)<br \/>\nprint(&#034;\u5408\u5e76\u540e\u6570\u636e\u96c6\u5f62\u72b6&#xff1a;&#034;, all_feat.shape)  # (30,5)<\/p>\n<p># \u5408\u5e76\u7279\u5f81\u5217&#xff08;\u6bd4\u5982\u6dfb\u52a0\u65b0\u7279\u5f81&#xff09;<br \/>\nnew_feat &#061; np.random.rand(30,1)  # 30\u4e2a\u6837\u672c\u00d71\u4e2a\u65b0\u7279\u5f81<br \/>\nall_feat_new &#061; np.hstack((all_feat, new_feat))<br \/>\nprint(&#034;\u6dfb\u52a0\u65b0\u7279\u5f81\u540e\u5f62\u72b6&#xff1a;&#034;, all_feat_new.shape)  # (30,6)<\/p>\n<h5>\u573a\u666f 2&#xff1a;\u5408\u5e76\u65f6\u95f4\u5e8f\u5217\u6570\u636e&#xff08;\u6e29\u5ea6\u6570\u636e&#xff09;<\/h5>\n<p>python<\/p>\n<p>import numpy as np<\/p>\n<p># \u6a21\u62df3\u6708\u548c4\u6708\u7684\u6e29\u5ea6\u6570\u636e&#xff08;\u540431\u5929\u00d724\u5c0f\u65f6&#xff09;<br \/>\nmarch_temp &#061; np.random.normal(5,6,(31,24)).round(1)<br \/>\napril_temp &#061; np.random.normal(15,5,(30,24)).round(1)<\/p>\n<p># \u5408\u5e76\u4e3a2\u4e2a\u6708\u7684\u6e29\u5ea6\u6570\u636e&#xff08;\u6309\u884c\u62fc\u63a5&#xff0c;\u884c\u657031&#043;30&#061;61&#xff09;<br \/>\nspring_temp &#061; np.vstack((march_temp, april_temp))<br \/>\nprint(&#034;\u6625\u5b63\u6e29\u5ea6\u6570\u636e\u5f62\u72b6&#xff1a;&#034;, spring_temp.shape)  # (61,24)<\/p>\n<h5>\u573a\u666f 3&#xff1a;\u6279\u91cf\u62fc\u63a5\u591a\u4e2a\u6570\u7ec4<\/h5>\n<p>python<\/p>\n<p>import numpy as np<\/p>\n<p># \u751f\u621010\u4e2a\u4e00\u7ef4\u6570\u7ec4&#xff0c;\u6bcf\u4e2a\u6570\u7ec45\u4e2a\u5143\u7d20<br \/>\narr_list &#061; [np.random.randint(0,10,5) for _ in range(10)]<\/p>\n<p># \u62fc\u63a5\u4e3a\u4e00\u4e2a\u4e00\u7ef4\u6570\u7ec4<br \/>\nall_arr &#061; np.concatenate(arr_list, axis&#061;0)<br \/>\nprint(&#034;\u6279\u91cf\u62fc\u63a5\u540e\u5f62\u72b6&#xff1a;&#034;, all_arr.shape)  # (50,)<\/p>\n<h4>\u516d\u3001\u907f\u5751\u70b9\u4e0e\u6700\u4f73\u5b9e\u8df5<\/h4>\n<h5>1. \u6838\u5fc3\u907f\u5751\u70b9<\/h5>\n<ul>\n<li>\u274c \u8bef\u533a&#xff1a;\u76f4\u63a5\u4f20\u591a\u4e2a\u6570\u7ec4\u7ed9 concatenate&#xff08;\u5fc5\u987b\u7528\u5143\u7ec4 \/ \u5217\u8868\u5305\u88f9&#xff0c;\u5982 (arr1,arr2)&#xff09;&#xff1b;<\/li>\n<li>\u274c \u9519\u8bef&#xff1a;\u4e00\u7ef4\u6570\u7ec4\u7528 axis&#061;1 \u62fc\u63a5&#xff08;\u4e00\u7ef4\u6570\u7ec4\u53ea\u6709 axis&#061;0&#xff0c;\u4f1a\u62a5\u9519&#xff09;&#xff1b;<\/li>\n<li>\u274c \u5ffd\u7565&#xff1a;\u62fc\u63a5\u8f74\u7684\u65b9\u5411&#xff08;\u4e8c\u7ef4\u6570\u7ec4 axis&#061;0 \u662f\u884c&#xff0c;axis&#061;1 \u662f\u5217&#xff0c;\u6613\u8bb0\u53cd&#xff09;&#xff1b;<\/li>\n<li>\u274c \u6df7\u6dc6&#xff1a;vstack \u5bf9\u4e00\u7ef4\u6570\u7ec4\u7684\u5904\u7406&#xff08;\u4f1a\u8f6c\u4e3a\u4e8c\u7ef4&#xff0c;\u800c concatenate \u4fdd\u6301\u4e00\u7ef4&#xff09;\u3002<\/li>\n<\/ul>\n<h5>2. \u6700\u4f73\u5b9e\u8df5<\/h5>\n<ul>\n<li>\u2705 \u7b80\u5355\u62fc\u63a5\u7528 vstack\/hstack&#xff08;\u8bed\u4e49\u6e05\u6670&#xff0c;\u65e0\u9700\u8bb0 axis&#xff09;&#xff1b;<\/li>\n<li>\u2705 \u9ad8\u7ef4\u6570\u7ec4\u7528 np.concatenate&#xff08;\u660e\u786e\u6307\u5b9a axis&#xff09;&#xff1b;<\/li>\n<li>\u2705 \u62fc\u63a5\u524d\u68c0\u67e5\u5f62\u72b6&#xff1a;\u7528 arr.shape \u786e\u8ba4\u9664\u62fc\u63a5\u8f74\u5916\u5176\u4ed6\u7ef4\u5ea6\u4e00\u81f4&#xff1b;<\/li>\n<li>\u2705 \u6279\u91cf\u62fc\u63a5\u591a\u4e2a\u6570\u7ec4\u65f6&#xff0c;\u5148\u653e\u5165\u5217\u8868&#xff0c;\u518d\u4f20\u7ed9 concatenate&#xff1b;<\/li>\n<li>\u2705 \u9700\u9891\u7e41\u62fc\u63a5\u65f6&#xff0c;\u5148\u9884\u5206\u914d\u6570\u7ec4&#xff08;np.empty&#xff09;\u518d\u586b\u5145&#xff0c;\u6bd4\u591a\u6b21\u62fc\u63a5\u66f4\u9ad8\u6548\u3002<\/li>\n<\/ul>\n<h4>\u603b\u7ed3<\/h4>\n<li>NumPy \u6570\u7ec4\u62fc\u63a5\u7684\u6838\u5fc3\u662f np.concatenate()&#xff0c;vstack\/hstack \u662f\u7b80\u5316\u7248&#xff08;\u5206\u522b\u5bf9\u5e94 axis&#061;0\/1&#xff09;&#xff1b;<\/li>\n<li>\u62fc\u63a5\u89c4\u5219&#xff1a;\u9664\u62fc\u63a5\u8f74\u5916&#xff0c;\u5176\u4ed6\u7ef4\u5ea6\u5927\u5c0f\u5fc5\u987b\u5b8c\u5168\u4e00\u81f4&#xff0c;\u5426\u5219\u62a5\u9519&#xff1b;<\/li>\n<li>\u7ef4\u5ea6\u8bf4\u660e&#xff1a;\n<ul>\n<li>\u4e00\u7ef4\u6570\u7ec4&#xff1a;\u4ec5\u80fd\u6309 axis&#061;0 \u62fc\u63a5&#xff08;hstack \u5408\u5e76\u4e3a\u66f4\u957f\u4e00\u7ef4&#xff0c;vstack \u8f6c\u4e3a\u4e8c\u7ef4&#xff09;&#xff1b;<\/li>\n<li>\u4e8c\u7ef4\u6570\u7ec4&#xff1a;axis&#061;0 \u6309\u884c\u62fc\u63a5&#xff08;\u5217\u6570\u4e00\u81f4&#xff09;&#xff0c;axis&#061;1 \u6309\u5217\u62fc\u63a5&#xff08;\u884c\u6570\u4e00\u81f4&#xff09;&#xff1b;<\/li>\n<\/ul>\n<\/li>\n<li>\u907f\u5751\u5173\u952e&#xff1a;\u62fc\u63a5\u524d\u68c0\u67e5\u5f62\u72b6\u517c\u5bb9\u6027&#xff0c;\u4e00\u7ef4\u6570\u7ec4\u9700\u8f6c\u4e8c\u7ef4\u65f6\u7528 np.expand_dims&#xff1b;<\/li>\n<li>\u5e38\u7528\u573a\u666f&#xff1a;\u5408\u5e76\u6570\u636e\u96c6\u3001\u6dfb\u52a0\u7279\u5f81\u5217\u3001\u5408\u5e76\u65f6\u95f4\u5e8f\u5217\u6570\u636e\u3002<\/li>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u3001\u6570\u7ec4\u62fc\u63a5\u7684\u6838\u5fc3\u5b9a\u4e49\u6570\u7ec4\u62fc\u63a5\u662f\u6307\u5c06\u591a\u4e2a\u5f62\u72b6\u517c\u5bb9\u7684\u6570\u7ec4&#xff0c;\u6cbf\u7740\u6307\u5b9a\u7684\u8f74&#xff08;axis&#xff09; \u5408\u5e76\u4e3a\u4e00\u4e2a\u65b0\u6570\u7ec4&#xff1a;\u8f74&#xff08;axis&#xff09;&#xff1a;\u62fc\u63a5\u7684\u65b9\u5411&#xff0c;\u4e8c\u7ef4\u6570\u7ec4\u4e2d axis0 \u8868\u793a\u6309\u884c\u62fc\u63a5&#xff08;\u5782\u76f4\u65b9\u5411&#xff09;&#xff0c;axis1 \u8868\u793a\u6309\u5217\u62fc\u63a5&#xff08;\u6c34\u5e73\u65b9\u5411&#xff09;&#xff1b;\u5f62\u72b6\u517c\u5bb9&#xff1a;\u9664\u62fc\u63a5\u8f74\u5916&#xff0c;\u5176\u4ed6\u7ef4\u5ea6\u7684\u5927\u5c0f\u5fc5\u987b<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[1818],"topic":[],"class_list":["post-77965","post","type-post","status-publish","format-standard","hentry","category-server","tag-numpy"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u6df1\u5165\u7406\u89e3 NumPy \u4e2d\u6570\u7ec4\u7684\u62fc\u63a5\uff08Concatenation\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/77965.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u6df1\u5165\u7406\u89e3 NumPy \u4e2d\u6570\u7ec4\u7684\u62fc\u63a5\uff08Concatenation\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u4e00\u3001\u6570\u7ec4\u62fc\u63a5\u7684\u6838\u5fc3\u5b9a\u4e49\u6570\u7ec4\u62fc\u63a5\u662f\u6307\u5c06\u591a\u4e2a\u5f62\u72b6\u517c\u5bb9\u7684\u6570\u7ec4&#xff0c;\u6cbf\u7740\u6307\u5b9a\u7684\u8f74&#xff08;axis&#xff09; \u5408\u5e76\u4e3a\u4e00\u4e2a\u65b0\u6570\u7ec4&#xff1a;\u8f74&#xff08;axis&#xff09;&#xff1a;\u62fc\u63a5\u7684\u65b9\u5411&#xff0c;\u4e8c\u7ef4\u6570\u7ec4\u4e2d axis0 \u8868\u793a\u6309\u884c\u62fc\u63a5&#xff08;\u5782\u76f4\u65b9\u5411&#xff09;&#xff0c;axis1 \u8868\u793a\u6309\u5217\u62fc\u63a5&#xff08;\u6c34\u5e73\u65b9\u5411&#xff09;&#xff1b;\u5f62\u72b6\u517c\u5bb9&#xff1a;\u9664\u62fc\u63a5\u8f74\u5916&#xff0c;\u5176\u4ed6\u7ef4\u5ea6\u7684\u5927\u5c0f\u5fc5\u987b\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/77965.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-02-25T12:26:03+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/77965.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/77965.html\",\"name\":\"\u6df1\u5165\u7406\u89e3 NumPy \u4e2d\u6570\u7ec4\u7684\u62fc\u63a5\uff08Concatenation\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-02-25T12:26:03+00:00\",\"dateModified\":\"2026-02-25T12:26:03+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/77965.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/77965.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/77965.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u6df1\u5165\u7406\u89e3 NumPy \u4e2d\u6570\u7ec4\u7684\u62fc\u63a5\uff08Concatenation\uff09\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u6df1\u5165\u7406\u89e3 NumPy \u4e2d\u6570\u7ec4\u7684\u62fc\u63a5\uff08Concatenation\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","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:\/\/www.wsisp.com\/helps\/77965.html","og_locale":"zh_CN","og_type":"article","og_title":"\u6df1\u5165\u7406\u89e3 NumPy \u4e2d\u6570\u7ec4\u7684\u62fc\u63a5\uff08Concatenation\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u4e00\u3001\u6570\u7ec4\u62fc\u63a5\u7684\u6838\u5fc3\u5b9a\u4e49\u6570\u7ec4\u62fc\u63a5\u662f\u6307\u5c06\u591a\u4e2a\u5f62\u72b6\u517c\u5bb9\u7684\u6570\u7ec4&#xff0c;\u6cbf\u7740\u6307\u5b9a\u7684\u8f74&#xff08;axis&#xff09; \u5408\u5e76\u4e3a\u4e00\u4e2a\u65b0\u6570\u7ec4&#xff1a;\u8f74&#xff08;axis&#xff09;&#xff1a;\u62fc\u63a5\u7684\u65b9\u5411&#xff0c;\u4e8c\u7ef4\u6570\u7ec4\u4e2d axis0 \u8868\u793a\u6309\u884c\u62fc\u63a5&#xff08;\u5782\u76f4\u65b9\u5411&#xff09;&#xff0c;axis1 \u8868\u793a\u6309\u5217\u62fc\u63a5&#xff08;\u6c34\u5e73\u65b9\u5411&#xff09;&#xff1b;\u5f62\u72b6\u517c\u5bb9&#xff1a;\u9664\u62fc\u63a5\u8f74\u5916&#xff0c;\u5176\u4ed6\u7ef4\u5ea6\u7684\u5927\u5c0f\u5fc5\u987b","og_url":"https:\/\/www.wsisp.com\/helps\/77965.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-02-25T12:26:03+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"5 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/77965.html","url":"https:\/\/www.wsisp.com\/helps\/77965.html","name":"\u6df1\u5165\u7406\u89e3 NumPy \u4e2d\u6570\u7ec4\u7684\u62fc\u63a5\uff08Concatenation\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-02-25T12:26:03+00:00","dateModified":"2026-02-25T12:26:03+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/77965.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/77965.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/77965.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u6df1\u5165\u7406\u89e3 NumPy \u4e2d\u6570\u7ec4\u7684\u62fc\u63a5\uff08Concatenation\uff09"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/77965","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=77965"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/77965\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=77965"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=77965"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=77965"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=77965"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}