﻿{"id":1463,"date":"2020-08-02T10:43:19","date_gmt":"2020-08-02T02:43:19","guid":{"rendered":"https:\/\/www.tansoo.cn\/?p=1463"},"modified":"2020-08-02T10:43:19","modified_gmt":"2020-08-02T02:43:19","slug":"phpbb-40","status":"publish","type":"post","link":"https:\/\/www.tansoo.cn\/?p=1463","title":{"rendered":"Numpy\u5e38\u7528\u51fd\u6570\u7528\u6cd5\u5927\u5168"},"content":{"rendered":"<p>.ndim \uff1a\u7ef4\u5ea6<br \/>\n.shape \uff1a\u5404\u7ef4\u5ea6\u7684\u5c3a\u5ea6 \uff082\uff0c5\uff09<br \/>\n.size \uff1a\u5143\u7d20\u7684\u4e2a\u6570 10<br \/>\n.dtype \uff1a\u5143\u7d20\u7684\u7c7b\u578b dtype(\u2018int32\u2019)<br \/>\n.itemsize \uff1a\u6bcf\u4e2a\u5143\u7d20\u7684\u5927\u5c0f\uff0c\u4ee5\u5b57\u8282\u4e3a\u5355\u4f4d \uff0c\u6bcf\u4e2a\u5143\u7d20\u53604\u4e2a\u5b57\u8282<br \/>\nndarray\u6570\u7ec4\u7684\u521b\u5efa<br \/>\nnp.arange(n) ; \u5143\u7d20\u4ece0\u5230n-1\u7684ndarray\u7c7b\u578b<br \/>\nnp.ones(shape): \u751f\u6210\u51681<br \/>\nnp.zeros((shape)\uff0c ddtype = np.int32) \uff1a \u751f\u6210int32\u578b\u7684\u51680<br \/>\nnp.full(shape, val): \u751f\u6210\u5168\u4e3aval<br \/>\nnp.eye(n) : \u751f\u6210\u5355\u4f4d\u77e9\u9635<\/p>\n<p>np.ones_like(a) : \u6309\u6570\u7ec4a\u7684\u5f62\u72b6\u751f\u6210\u51681\u7684\u6570\u7ec4<br \/>\nnp.zeros_like(a): \u540c\u7406<br \/>\nnp.full_like (a, val) : \u540c\u7406<\/p>\n<p>np.linspace\uff081,10,4\uff09\uff1a \u6839\u636e\u8d77\u6b62\u6570\u636e\u7b49\u95f4\u8ddd\u5730\u751f\u6210\u6570\u7ec4<br \/>\nnp.linspace\uff081,10,4, endpoint = False\uff09\uff1aendpoint \u8868\u793a10\u662f\u5426\u4f5c\u4e3a\u751f\u6210\u7684\u5143\u7d20<br \/>\nnp.concatenate():<\/p>\n<p><span style=\"font-size:150%;line-height:116%\"><span style=\"color:#0040BF\">-\u6570\u7ec4\u7684\u7ef4\u5ea6\u53d8\u6362<\/span><\/span><br \/>\n.reshape(shape) : \u4e0d\u6539\u53d8\u5f53\u524d\u6570\u7ec4\uff0c\u4f9dshape\u751f\u6210<br \/>\n.resize(shape) : \u6539\u53d8\u5f53\u524d\u6570\u7ec4\uff0c\u4f9dshape\u751f\u6210<br \/>\n.swapaxes(ax1, ax2) : \u5c06\u4e24\u4e2a\u7ef4\u5ea6\u8c03\u6362<br \/>\n.flatten() : \u5bf9\u6570\u7ec4\u8fdb\u884c\u964d\u7ef4\uff0c\u8fd4\u56de\u6298\u53e0\u540e\u7684\u4e00\u4f4d\u6570\u7ec4<\/p>\n<p><span style=\"font-size:150%;line-height:116%\">-\u6570\u7ec4\u7684\u7c7b\u578b\u53d8\u6362<\/span><br \/>\n\u6570\u636e\u7c7b\u578b\u7684\u8f6c\u6362 \uff1aa.astype(new_type) : eg, a.astype (np.float)<br \/>\n\u6570\u7ec4\u5411\u5217\u8868\u7684\u8f6c\u6362\uff1a a.tolist()<br \/>\n\u6570\u7ec4\u7684\u7d22\u5f15\u548c\u5207\u7247<\/p>\n<p><span style=\"font-size:150%;line-height:116%\">&#8211; \u4e00\u7ef4\u6570\u7ec4\u5207\u7247<\/span><br \/>\na = np.array ([9, 8, 7, 6, 5, ])<br \/>\na[1:4:2] \u2013&gt; array([8, 6]) \uff1a a[\u8d77\u59cb\u7f16\u53f7\uff1a\u7ec8\u6b62\u7f16\u53f7\uff08\u4e0d\u542b\uff09\uff1a \u6b65\u957f]<\/p>\n<p><span style=\"font-size:150%;line-height:116%\">&#8211; \u591a\u7ef4\u6570\u7ec4\u7d22\u5f15<\/span><br \/>\na = np.arange(24).reshape((2, 3, 4))<br \/>\na[1, 2, 3] \u8868\u793a 3\u4e2a\u7ef4\u5ea6\u4e0a\u7684\u7f16\u53f7\uff0c \u5404\u4e2a\u7ef4\u5ea6\u7684\u7f16\u53f7\u7528\u9017\u53f7\u5206\u9694<\/p>\n<p><span style=\"font-size:150%;line-height:116%\">&#8211; \u591a\u7ef4\u6570\u7ec4\u5207\u7247<\/span><br \/>\na [\uff1a\uff0c\uff1a\uff0c\uff1a\uff1a2 ] \u7f3a\u7701\u65f6\uff0c\u8868\u793a\u4ece\u7b2c0\u4e2a\u5143\u7d20\u5f00\u59cb\uff0c\u5230\u6700\u540e\u4e00\u4e2a\u5143\u7d20<\/p>\n<p><span style=\"font-size:150%;line-height:116%\">\u6570\u7ec4\u7684\u8fd0\u7b97<\/span><br \/>\nnp.abs(a) np.fabs(a) : \u53d6\u5404\u5143\u7d20\u7684\u7edd\u5bf9\u503c<br \/>\nnp.sqrt(a) : \u8ba1\u7b97\u5404\u5143\u7d20\u7684\u5e73\u65b9\u6839<br \/>\nnp.square(a): \u8ba1\u7b97\u5404\u5143\u7d20\u7684\u5e73\u65b9<br \/>\nnp.log(a) np.log10(a) np.log2(a) : \u8ba1\u7b97\u5404\u5143\u7d20\u7684\u81ea\u7136\u5bf9\u6570\u300110\u30012\u4e3a\u5e95\u7684\u5bf9\u6570<br \/>\nnp.ceil(a) np.floor(a) : \u8ba1\u7b97\u5404\u5143\u7d20\u7684ceiling \u503c\uff0c floor\u503c\uff08ceiling\u5411\u4e0a\u53d6\u6574\uff0cfloor\u5411\u4e0b\u53d6\u6574\uff09<br \/>\nnp.rint(a) : \u5404\u5143\u7d20 \u56db\u820d\u4e94\u5165<br \/>\nnp.modf(a) : \u5c06\u6570\u7ec4\u5404\u5143\u7d20\u7684\u5c0f\u6570\u548c\u6574\u6570\u90e8\u5206\u4ee5\u4e24\u4e2a\u72ec\u7acb\u6570\u7ec4\u5f62\u5f0f\u8fd4\u56de<br \/>\nnp.exp(a) : \u8ba1\u7b97\u5404\u5143\u7d20\u7684\u6307\u6570\u503c<br \/>\nnp.sign(a) : \u8ba1\u7b97\u5404\u5143\u7d20\u7684\u7b26\u53f7\u503c 1\uff08+\uff09\uff0c0\uff0c-1\uff08-\uff09<br \/>\n.<br \/>\nnp.maximum(a, b) np.fmax() : \u6bd4\u8f83\uff08\u6216\u8005\u8ba1\u7b97\uff09\u5143\u7d20\u7ea7\u7684\u6700\u5927\u503c<br \/>\nnp.minimum(a, b) np.fmin() : \u53d6\u6700\u5c0f\u503c<br \/>\nnp.mod(a, b) : \u5143\u7d20\u7ea7\u7684\u6a21\u8fd0\u7b97<br \/>\nnp.copysign(a, b) : \u5c06b\u4e2d\u5404\u5143\u7d20\u7684\u7b26\u53f7\u8d4b\u503c\u7ed9\u6570\u7ec4a\u7684\u5bf9\u5e94\u5143\u7d20<\/p>\n<p><span style=\"font-size:150%;line-height:116%\">&#8211; \u6570\u636e\u7684CSV\u6587\u4ef6\u5b58\u53d6<\/span><br \/>\nCSV (Comma-Separated Value,\u9017\u53f7\u5206\u9694\u503c) \u53ea\u80fd\u5b58\u50a8\u4e00\u7ef4\u548c\u4e8c\u7ef4\u6570\u7ec4<\/p>\n<p>np.savetxt(frame, array, fmt=\u2019% .18e\u2019, delimiter = None): frame\u662f\u6587\u4ef6\u3001\u5b57\u7b26\u4e32\u7b49\uff0c\u53ef\u4ee5\u662f.gz .bz2\u7684\u538b\u7f29\u6587\u4ef6\uff1b array \u8868\u793a\u5b58\u5165\u7684\u6570\u7ec4\uff1b fmt \u8868\u793a\u5143\u7d20\u7684\u683c\u5f0f eg\uff1a %d % .2f % .18e ; delimiter\uff1a \u5206\u5272\u5b57\u7b26\u4e32\uff0c\u9ed8\u8ba4\u662f\u7a7a\u683c<br \/>\neg\uff1a np.savetxt(\u2018a.csv\u2019, a, fmt=%d, delimiter = \u2018,\u2019 )<\/p>\n<p>np.loadtxt(frame, dtype=np.float, delimiter = None, unpack = False) : frame\u662f\u6587\u4ef6\u3001\u5b57\u7b26\u4e32\u7b49\uff0c\u53ef\u4ee5\u662f.gz .bz2\u7684\u538b\u7f29\u6587\u4ef6\uff1b dtype\uff1a\u6570\u636e\u7c7b\u578b\uff0c\u8bfb\u53d6\u7684\u6570\u636e\u4ee5\u6b64\u7c7b\u578b\u5b58\u50a8\uff1b delimiter: \u5206\u5272\u5b57\u7b26\u4e32\uff0c\u9ed8\u8ba4\u662f\u7a7a\u683c; unpack: \u5982\u679c\u4e3aTrue\uff0c \u8bfb\u5165\u5c5e\u6027\u5c06\u5206\u522b\u5199\u5165\u4e0d\u540c\u53d8\u91cf\u3002<\/p>\n<p><span style=\"font-size:150%;line-height:116%\">-\u591a\u7ef4\u6570\u636e\u7684\u5b58\u53d6<\/span><br \/>\na.tofile(frame, sep=\u2019\u2019, format=\u2019%s\u2019 ) : frame: \u6587\u4ef6\u3001\u5b57\u7b26\u4e32\uff1b sep: \u6570\u636e\u5206\u5272\u5b57\u7b26\u4e32\uff0c\u5982\u679c\u662f\u7a7a\u4e32\uff0c\u5199\u5165\u6587\u4ef6\u4e3a\u4e8c\u8fdb\u5236 \uff1b format:\uff1a \u5199\u5165\u6570\u636e\u7684\u683c\u5f0f<br \/>\neg: a = np.arange(100).reshape(5, 10, 2)<br \/>\na.tofile(\u201cb.dat\u201d, sep=\u201d,\u201d, format=\u2019%d\u2019)<\/p>\n<p>np.fromfile(frame, dtype = float, count=-1, sep=\u2019\u2019)\uff1a frame\uff1a \u6587\u4ef6\u3001\u5b57\u7b26\u4e32 \uff1b dtype\uff1a \u8bfb\u53d6\u7684\u6570\u636e\u4ee5\u6b64\u7c7b\u578b\u5b58\u50a8\uff1b count\uff1a\u8bfb\u5165\u5143\u7d20\u4e2a\u6570\uff0c -1\u8868\u793a\u8bfb\u5165\u6574\u4e2a\u6587\u4ef6\uff1b sep: \u6570\u636e\u5206\u5272\u5b57\u7b26\u4e32\uff0c\u5982\u679c\u662f\u7a7a\u4e32\uff0c\u5199\u5165\u6587\u4ef6\u4e3a\u4e8c\u8fdb\u5236<\/p>\n<p>PS: a.tofile() \u548cnp.fromfile\uff08\uff09\u8981\u914d\u5408\u4f7f\u7528\uff0c\u8981\u77e5\u9053\u6570\u636e\u7684\u7c7b\u578b\u548c\u7ef4\u5ea6\u3002<\/p>\n<p>np.save(frame, array) : frame: \u6587\u4ef6\u540d\uff0c\u4ee5.npy\u4e3a\u6269\u5c55\u540d\uff0c\u538b\u7f29\u6269\u5c55\u540d\u4e3a.npz \uff1b array\u4e3a\u6570\u7ec4\u53d8\u91cf<br \/>\nnp.load(fname) : frame: \u6587\u4ef6\u540d\uff0c\u4ee5.npy\u4e3a\u6269\u5c55\u540d\uff0c\u538b\u7f29\u6269\u5c55\u540d\u4e3a<\/p>\n<p>np.save() \u548cnp.load() \u4f7f\u7528\u65f6\uff0c\u4e0d\u7528\u81ea\u5df1\u8003\u8651\u6570\u636e\u7c7b\u578b\u548c\u7ef4\u5ea6\u3002<\/p>\n<p><span style=\"font-size:150%;line-height:116%\">&#8211; numpy\u968f\u673a\u6570\u51fd\u6570<\/span><br \/>\nnumpy \u7684random\u5b50\u5e93<\/p>\n<p>rand(d0, d1, \u2026,dn) : \u5404\u5143\u7d20\u662f[0, 1\uff09\u7684\u6d6e\u70b9\u6570\uff0c\u670d\u4ece\u5747\u5300\u5206\u5e03<br \/>\nrandn(d0, d1, \u2026,dn)\uff1a\u6807\u51c6\u6b63\u6001\u5206\u5e03<br \/>\nrandint(low\uff0c high,\uff08 shape\uff09): \u4f9dshape\u521b\u5efa\u968f\u673a\u6574\u6570\u6216\u6574\u6570\u6570\u7ec4\uff0c\u8303\u56f4\u662f[ low, high\uff09<br \/>\nseed(s) \uff1a \u968f\u673a\u6570\u79cd\u5b50<\/p>\n<p>shuffle(a) : \u6839\u636e\u6570\u7ec4a\u7684\u7b2c\u4e00\u8f74\u8fdb\u884c\u968f\u673a\u6392\u5217\uff0c\u6539\u53d8\u6570\u7ec4a<br \/>\npermutation(a) : \u6839\u636e\u6570\u7ec4a\u7684\u7b2c\u4e00\u8f74\u8fdb\u884c\u968f\u673a\u6392\u5217\uff0c \u4f46\u662f\u4e0d\u6539\u53d8\u539f\u6570\u7ec4\uff0c\u5c06\u751f\u6210\u65b0\u6570\u7ec4<br \/>\nchoice(a[, size, replace, p]) : \u4ece\u4e00\u7ef4\u6570\u7ec4a\u4e2d\u4ee5\u6982\u7387p\u62bd\u53d6\u5143\u7d20\uff0c \u5f62\u6210size\u5f62\u72b6\u65b0\u6570\u7ec4\uff0creplace\u8868\u793a\u662f\u5426\u53ef\u4ee5\u91cd\u7528\u5143\u7d20\uff0c\u9ed8\u8ba4\u4e3aFalse\u3002<br \/>\neg\uff1a \u8fd9\u91cc\u5199\u56fe\u7247\u63cf\u8ff0<br \/>\nreplace = False\u65f6\uff0c\u9009\u53d6\u8fc7\u7684\u5143\u7d20\u5c06\u4e0d\u4f1a\u518d\u9009\u53d6<\/p>\n<p>uniform(low, high, size) : \u4ea7\u751f\u5747\u5300\u5206\u5e03\u7684\u6570\u7ec4\uff0c\u8d77\u59cb\u503c\u4e3alow\uff0chigh\u4e3a\u7ed3\u675f\u503c\uff0csize\u4e3a\u5f62\u72b6<br \/>\nnormal(loc, scale, size) : \u4ea7\u751f\u6b63\u6001\u5206\u5e03\u7684\u6570\u7ec4\uff0c loc\u4e3a\u5747\u503c\uff0cscale\u4e3a\u6807\u51c6\u5dee\uff0csize\u4e3a\u5f62\u72b6<br \/>\npoisson(lam, size) : \u4ea7\u751f\u6cca\u677e\u5206\u5e03\u7684\u6570\u7ec4\uff0c lam\u968f\u673a\u4e8b\u4ef6\u53d1\u751f\u6982\u7387\uff0csize\u4e3a\u5f62\u72b6<br \/>\neg: a = np.random.uniform(0, 10, (3, 4)) a = np.random.normal(10, 5, (3, 4))<\/p>\n<p><span style=\"font-size:150%;line-height:116%\">&#8211; numpy\u7684\u7edf\u8ba1\u51fd\u6570<\/span><br \/>\nsum(a, axis = None) : \u4f9d\u7ed9\u5b9a\u8f74axis\u8ba1\u7b97\u6570\u7ec4a\u76f8\u5173\u5143\u7d20\u4e4b\u548c\uff0caxis\u4e3a\u6574\u6570\u6216\u8005\u5143\u7ec4<br \/>\nmean(a, axis = None) : \u540c\u7406\uff0c\u8ba1\u7b97\u5e73\u5747\u503c<br \/>\naverage(a, axis =None, weights=None) : \u4f9d\u7ed9\u5b9a\u8f74axis\u8ba1\u7b97\u6570\u7ec4a\u76f8\u5173\u5143\u7d20\u7684\u52a0\u6743\u5e73\u5747\u503c<br \/>\nstd\uff08a, axis = None\uff09 \uff1a\u540c\u7406\uff0c\u8ba1\u7b97\u6807\u51c6\u5dee<br \/>\nvar\uff08a, axis = None\uff09: \u8ba1\u7b97\u65b9\u5dee<br \/>\neg\uff1a np.mean(a, axis =1) \uff1a \u5bf9\u6570\u7ec4a\u7684\u7b2c\u4e8c\u7ef4\u5ea6\u7684\u6570\u636e\u8fdb\u884c\u6c42\u5e73\u5747<br \/>\na = np.arange(15).reshape(3, 5)<br \/>\nnp.average(a, axis =0, weights =[10, 5, 1]) : \u5bf9a\u7b2c\u4e00\u5404\u7ef4\u5ea6\u52a0\u6743\u6c42\u5e73\u5747\uff0cweights\u4e2d\u4e3a\u6743\u91cd\uff0c\u6ce8\u610f\u8981\u548ca\u7684\u7b2c\u4e00\u7ef4\u5339\u914d<\/p>\n<p>min(a) max(a) : \u8ba1\u7b97\u6570\u7ec4a\u7684\u6700\u5c0f\u503c\u548c\u6700\u5927\u503c<br \/>\nargmin(a) argmax(a) : \u8ba1\u7b97\u6570\u7ec4a\u7684\u6700\u5c0f\u3001\u6700\u5927\u503c\u7684\u4e0b\u6807\uff08\u6ce8\uff1a\u662f\u4e00\u7ef4\u7684\u4e0b\u6807\uff09<br \/>\nunravel_index(index, shape) : \u6839\u636eshape\u5c06\u4e00\u7ef4\u4e0b\u6807index\u8f6c\u6210\u591a\u7ef4\u4e0b\u6807<br \/>\nptp(a) : \u8ba1\u7b97\u6570\u7ec4a\u6700\u5927\u503c\u548c\u6700\u5c0f\u503c\u7684\u5dee<br \/>\nmedian(a) : \u8ba1\u7b97\u6570\u7ec4a\u4e2d\u5143\u7d20\u7684\u4e2d\u4f4d\u6570\uff08\u4e2d\u503c\uff09<br \/>\neg\uff1aa = [[15, 14, 13],<br \/>\n[12, 11, 10] ]<br \/>\nnp.argmax(a) \u2013&gt; 0<br \/>\nnp.unravel_index( np.argmax(a), a.shape) \u2013&gt; (0,0)<\/p>\n<p><span style=\"font-size:150%;line-height:116%\">&#8211; numpy\u7684\u68af\u5ea6\u51fd\u6570<\/span><br \/>\nnp.gradient(a) \uff1a \u8ba1\u7b97\u6570\u7ec4a\u4e2d\u5143\u7d20\u7684\u68af\u5ea6\uff0cf\u4e3a\u591a\u7ef4\u65f6\uff0c\u8fd4\u56de\u6bcf\u4e2a\u7ef4\u5ea6\u7684\u68af\u5ea6<br \/>\n\u79bb\u6563\u68af\u5ea6\uff1a xy\u5750\u6807\u8f74\u8fde\u7eed\u4e09\u4e2ax\u8f74\u5750\u6807\u5bf9\u5e94\u7684y\u8f74\u503c\uff1aa, b, c \u5176\u4e2db\u7684\u68af\u5ea6\u662f\uff08c-a\uff09\/2<br \/>\n\u800cc\u7684\u68af\u5ea6\u662f\uff1a (c-b)\/1<\/p>\n<p>\u5f53\u4e3a\u4e8c\u7ef4\u6570\u7ec4\u65f6\uff0cnp.gradient(a) \u5f97\u51fa\u4e24\u4e2a\u6570\u7ec4\uff0c\u7b2c\u4e00\u4e2a\u6570\u7ec4\u5bf9\u5e94\u6700\u5916\u5c42\u7ef4\u5ea6\u7684\u68af\u5ea6\uff0c\u7b2c\u4e8c\u4e2a\u6570\u7ec4\u5bf9\u5e94\u7b2c\u4e8c\u5c42\u7ef4\u5ea6\u7684\u68af\u5ea6\u3002<br \/>\n\u8fd9\u91cc\u5199\u56fe\u7247\u63cf\u8ff0<\/p>\n<p><span style=\"font-size:150%;line-height:116%\">&#8211; \u56fe\u50cf\u7684\u8868\u793a\u548c\u53d8\u6362<\/span><br \/>\nPIL\uff0c python image library \u5e93<br \/>\nfrom PIL import Image<br \/>\nImage\u662fPIL\u5e93\u4e2d\u4ee3\u8868\u4e00\u4e2a\u56fe\u50cf\u7684\u7c7b\uff08\u5bf9\u8c61\uff09<\/p>\n<p>im = np.array(Image.open(\u201c.jpg\u201d))<\/p>\n<p>im = Image.fromarray(b.astype(\u2018uint8\u2019)) # \u751f\u6210<br \/>\nim.save(\u201c\u8def\u5f84.jpg\u201d) # \u4fdd\u5b58<\/p>\n<p>im = np.array(Image.open(\u201c.jpg\u201d).convert(\u2018L\u2019)) # convert(\u2018L\u2019)\u8868\u793a\u8f6c\u4e3a\u7070\u5ea6\u56fe<\/p>\n<p><small>\u539f\u6587\u4f5c\u8005: BG6RSH | <a href=\"https:\/\/bbs.tansoo.cn\/viewtopic.php?t=40\" target=\"_blank\" rel=\"noopener\">\u67e5\u770b\u539f\u5e16<\/a><\/small><\/p>\n","protected":false},"excerpt":{"rendered":"<p>.ndim \uff1a\u7ef4\u5ea6 .shape \uff1a\u5404\u7ef4\u5ea6\u7684\u5c3a\u5ea6 \uff082\uff0c5\uff09 .size \uff1a\u5143\u7d20 &hellip; <a href=\"https:\/\/www.tansoo.cn\/?p=1463\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[105],"tags":[],"class_list":["post-1463","post","type-post","status-publish","format-standard","hentry","category-105"],"_links":{"self":[{"href":"https:\/\/www.tansoo.cn\/index.php?rest_route=\/wp\/v2\/posts\/1463","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tansoo.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tansoo.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tansoo.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tansoo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1463"}],"version-history":[{"count":0,"href":"https:\/\/www.tansoo.cn\/index.php?rest_route=\/wp\/v2\/posts\/1463\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.tansoo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1463"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tansoo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1463"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tansoo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1463"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}