{"id":1003,"date":"2020-12-01T09:09:54","date_gmt":"2020-12-01T01:09:54","guid":{"rendered":"http:\/\/www.wangkaixuan.tech\/?p=1003"},"modified":"2020-12-01T09:09:54","modified_gmt":"2020-12-01T01:09:54","slug":"linux%e5%86%85%e6%a0%b8%e6%95%b0%e6%8d%ae%e7%bb%93%e6%9e%84-hashtable","status":"publish","type":"post","link":"http:\/\/www.wangkaixuan.tech\/?p=1003","title":{"rendered":"LINUX\u5185\u6838\u6570\u636e\u7ed3\u6784-HASHTABLE"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">1.\u524d\u8a00<\/h2>\n\n\n\n<p>\u5728\u8bfb\u8fd9\u7bc7\u6587\u7ae0\u4e4b\u524d\uff0c\u5efa\u8bae\u60a8\u5148\u8bfb\u4e00\u4e0b\u4e0a\u4e00\u7bc7\u4ecb\u7ecdlinux\u5185\u6838list\u5b9e\u73b0\u7684\u6587\u7ae0\uff0c<a href=\"http:\/\/www.wangkaixuan.tech\/?p=990\">\u94fe\u63a5\u5728\u6b64<\/a>\u3002\u7531\u4e8e\u5f88\u591a\u539f\u7406\u6027\u7684\u4e1c\u897f\u5df2\u7ecf\u5728\u4e0a\u8ff0\u6587\u7ae0\u4e2d\u8fdb\u884c\u4e86\u9610\u91ca\uff0c\u56e0\u6b64\u8fd9\u7bc7\u6587\u7ae0\u4e2d\u4e0d\u518d\u91cd\u590d\u63cf\u8ff0\u3002<\/p>\n\n\n\n<p>Linux kernel 3.7 \u4e4b\u540e\u91c7\u7528\u4e86\u7531Sasha Levin\u8bbe\u8ba1\u7684\u901a\u7528\u578b hashtable\uff08\u4ee3\u7801\u5728<a href=\"https:\/\/github.com\/torvalds\/linux\/blob\/master\/include\/linux\/hashtable.h\">\u8fd9\u91cc<\/a>\uff09\uff0c\u4e3a\u4e86\u65b9\u4fbf\u5927\u5bb6\u7406\u89e3hashtable\u7684\u539f\u7406\uff0c\u6211\u4eec\u5e76\u6ca1\u6709\u76f4\u63a5\u4f7f\u7528Sasha Levin\u7684\u4ee3\u7801\uff0c\u800c\u662f\u628a\u6838\u5fc3\u4ee3\u7801\u6458\u5f55\u4e86\u51fa\u6765\uff0c\u8fd9\u6837\u770b\u8d77\u6765\u4f1a\u66f4\u6e05\u6670\u3002<\/p>\n\n\n\n<p>\u672c\u7bc7\u4e2d\u7684\u5b8c\u6574\u793a\u4f8b\u4ee3\u7801\u5df2\u7ecf\u4e0a\u4f20\u81f3<a href=\"https:\/\/github.com\/pandawkx\/playground\/tree\/master\/linux_kernel\/hashtable\">\u6211\u7684github\u4ed3\u5e93<\/a>\uff0c\u4f9b\u60a8\u53c2\u8003\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">2.\u539f\u7406<\/h2>\n\n\n\n<p>\u5927\u5bb6\u90fd\u77e5\u9053\uff0chashtable\u7684\u4e24\u4e2a\u8981\u70b9\u662f<strong>\u6563\u5217\u51fd\u6570<\/strong>\u548c<strong>\u51b2\u7a81\u5904\u7406<\/strong>\u65b9\u6cd5\uff08\u5982\u679c\u4e0d\u77e5\u9053\u5efa\u8bae\u5148\u8bfb\u4e0b\u4e4b\u524d\u5199\u7684<a href=\"http:\/\/www.wangkaixuan.tech\/?p=812\">\u8fd9\u7bc7\u6587\u7ae0<\/a>\uff09\u3002linux\u5185\u6838\u7684hashtable\uff0c\u8981\u6c42\u7528\u6237\u81ea\u5df1\u5b9e\u73b0\u6563\u5217\u51fd\u6570\uff0c\u51b2\u7a81\u5904\u7406\u65b9\u6cd5\u4e3a\u62c9\u94fe\u6cd5\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1315\" height=\"684\" src=\"http:\/\/www.wangkaixuan.tech\/wp-content\/uploads\/2020\/11\/image-72.png\" alt=\"\" class=\"wp-image-1004\"\/><\/figure>\n\n\n\n<p>\u62c9\u94fe\u6cd5\u7684\u94fe\u8868\uff0c\u7528\u7684\u662fhashlist\uff08\u4e0b\u9762\u7684\u7bc7\u5e45\u4f1a\u8be6\u7ec6\u4ecb\u7ecd\uff09\uff1bhashtable\u7684\u6876\uff0c\u5176\u5b9e\u5c31\u662fhashlist\u7684\u6570\u7ec4\uff1b\u7528\u6237\u63d0\u4f9b\u7684\u6563\u5217\u51fd\u6570\uff0c\u4f5c\u7528\u5c31\u662f\u628ahashtable\u7684key\u6620\u5c04\u4e3ahashlist\u6570\u7ec4\u7684\u4e0b\u6807\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">3.hashlist<\/h2>\n\n\n\n<p>hashlist\u7684\u4ee3\u7801\u4e0e\u666e\u901alist\u7684\u4ee3\u7801\u4f4d\u4e8e<a href=\"https:\/\/github.com\/torvalds\/linux\/blob\/master\/include\/linux\/list.h\">\u540c\u4e00\u6587\u4ef6<\/a>\u4e2d\uff0c\u5b9e\u73b0\u65b9\u5f0f\u4e5f\u662f\u6bd4\u8f83\u7c7b\u4f3c\u7684\u3002<\/p>\n\n\n\n<p>\u5b9a\u4e49\u5934\u7ed3\u70b9\u548c\u666e\u901a\u8282\u70b9\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ copy from kernel\/include\/linux\/types.h\r\nstruct hlist_head {\r\n\tstruct hlist_node *first;\r\n};\r\n\r\nstruct hlist_node {\r\n\tstruct hlist_node *next, **pprev;\r\n};\r<\/code><\/pre>\n\n\n\n<p>\u6ce8\u610f\uff0c\u666e\u901a\u94fe\u8868\u662f<strong>\u53cc\u5411\u94fe\u8868<\/strong>\uff0c\u56e0\u6b64\u4e0d\u533a\u5206\u5934\u7ed3\u70b9\u548c\u666e\u901a\u8282\u70b9\uff0c\u4ed6\u4eec\u4f7f\u7528\u540c\u6837\u7684\u7ed3\u6784\u4f53\uff0c\u4e14\u540c\u6837\u53ea\u5305\u542bprev\u548cnext\u4e24\u4e2a\u6307\u5411\u81ea\u5df1\u7684\u6307\u9488\u3002<\/p>\n\n\n\n<p>hash\u94fe\u8868\u5219\u4e0d\u540c\uff0c\u4ed6\u662f<strong>\u5355\u5411\u94fe\u8868<\/strong>\uff0c\u56e0\u6b64\u5934\u7ed3\u70b9\u4e2d\u53ea\u5305\u542b\u4e00\u4e2a\u6307\u5411\u7b2c\u4e00\u4e2a\u8282\u70b9\u7684\u6307\u9488\u3002\u666e\u901a\u8282\u70b9\u5219\u5305\u542b\u4e24\u4e2a\u5b57\u6bb5\uff0cnext\u5b57\u6bb5\u6307\u5411\u4e0b\u4e00\u4e2a\u5143\u7d20\uff0cpprev\u5219\u662f\u4e2a\u6307\u9488\u7684\u6307\u9488\uff0c\u6307\u5411<strong>\u524d\u4e00\u4e2a\u5143\u7d20\u7684next\/first\u6307\u9488<\/strong>\u3002\u4e4b\u6240\u4ee5\u8fd9\u6837\u8bbe\u8ba1\uff0c\u662f\u56e0\u4e3a\u94fe\u8868\u7684\u7b2c\u4e00\u4e2a\u5143\u7d20\u7684prev\u4e0e\u5176\u4ed6\u8282\u70b9\u7684prev\u7684\u7ed3\u6784\u4f53\u4e0d\u4e00\u6837\uff08\u4e00\u4e2a\u662fhlist_head\uff0c\u4e00\u4e2a\u662fhlist_node\uff09\uff0c\u4f46\u662f\u4ed6\u4eec\u7684prev\u8282\u70b9\u7684next\/first\u6307\u9488\u6307\u5411\u7684\u7ed3\u6784\u4f53\u662f\u4e00\u6837\u7684\uff0c\u56e0\u6b64\u53ef\u4ee5\u7edf\u4e00\u7528\u4e00\u4e2a\u6307\u5411hlist_node\u7684\u6307\u9488\u7684\u6307\u9488\u6765\u4fdd\u5b58\u3002<\/p>\n\n\n\n<p>\u94fe\u8868\u7684\u521d\u59cb\u5316\u8fc7\u7a0b\u5982\u4e0b\uff0c\u5176\u5b9e\u5c31\u662f\u628a\u6307\u9488\u7f6e\u7a7a\u800c\u5df2\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#define INIT_HLIST_HEAD(ptr) ((ptr)->first = NULL)\r\n\r\nstatic inline void INIT_HLIST_NODE(struct hlist_node *h)\r\n{\r\n\th->next = NULL;\r\n\th->pprev = NULL;\r\n}<\/code><\/pre>\n\n\n\n<p>\u589e\u52a0\u94fe\u8868\u8282\u70b9\u7684\u51fd\u6570\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>static inline void hlist_add_head(struct hlist_node *n, struct hlist_head *h)\r\n{\r\n\tstruct hlist_node *first = h->first;\r\n\tn->next = first;\r\n\tif (first)\r\n\t\tfirst->pprev = &amp;n->next;\r\n\th->first = n;\r\n\tn->pprev = &amp;h->first;\r\n}\r<\/code><\/pre>\n\n\n\n<p>\u8be5\u51fd\u6570\u662f\u4ece\u5934\u90e8\u63d2\u5165\uff0c\u5177\u4f53\u64cd\u4f5c\u4e5f\u5f88\u7b80\u5355\uff0c\u4e3b\u8981\u63d0\u9192\u4e00\u70b9\uff0c\u5373pprev\u6307\u9488\u662f\u6307\u5411\u524d\u4e00\u4e2a\u8282\u70b9\u7684next\/first\u6307\u9488\u3002<\/p>\n\n\n\n<p>\u904d\u5386\u8fc7\u7a0b\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#define hlist_entry(ptr, type, member) container_of(ptr,type,member)\r\n\r\n#define hlist_entry_safe(ptr, type, member) \\\r\n\t({ typeof(ptr) ____ptr = (ptr); \\\r\n\t   ____ptr ? hlist_entry(____ptr, type, member) : NULL; \\\r\n\t})\r\n\r\n#define hlist_for_each_entry(pos, head, member)\t\\\r\n\tfor (pos = hlist_entry_safe((head)->first, typeof(*(pos)), member);\\\r\n\t     pos; \\\r\n\t     pos = hlist_entry_safe((pos)->member.next, typeof(*(pos)), member))\r<\/code><\/pre>\n\n\n\n<p>hlist_for_each_entry\u4e2d\u591a\u6b21\u8c03\u7528\u4e86hlist_entry_safe\u5b8f\u5b9a\u4e49\uff0chlist_entry_safe\u5219\u662f\u5728\u666e\u901a\u7684hlist_entry\u4e0a\u5305\u4e86\u4e00\u5c42\uff0c\u5bf9\u6307\u9488\u505a\u4e86\u4e0b\u5224\u7a7a\u3002<\/p>\n\n\n\n<p>for\u5faa\u73af\u672c\u4f53\u4e5f\u6bd4\u8f83\u597d\u7406\u89e3\uff0c\u8d77\u59cb\u8282\u70b9\u662fhead\u8282\u70b9\u7684first\u6307\u9488\uff0c\u5373\u94fe\u8868\u7684\u7b2c\u4e00\u4e2a\u8282\u70b9\uff0c\u7ec8\u6b62\u6761\u4ef6\u662f\u6307\u9488\u975e\u7a7a\uff0c\u53d6\u4e0b\u4e00\u4e2a\u8282\u70b9\u65f6\uff0c\u53d6\u7528\u6237\u81ea\u5b9a\u4e49\u7ed3\u6784\u4f53\u5185\u5d4c\u7684hlist\u8282\u70b9\u7684next\u6307\u9488\u5373\u53ef\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">4.\u521d\u59cb\u5316<\/h2>\n\n\n\n<p>\u9996\u5148\u5f97\u5b9a\u4e49\u4e00\u4e2a\u7ed3\u6784\u4f53\uff0c\u5d4c\u5165hlist_node\u7ed3\u6784\u4f53\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>struct order_node_t\r\n{\r\n    long hkey;\r\n    long order_ref;\r\n    struct hlist_node hnode;\r\n};<\/code><\/pre>\n\n\n\n<p>\u5728\u8fd9\u91cc\uff0c\u6211\u4eec\u4ee5\u4fdd\u5b58\u8ba2\u5355\u7ed3\u6784\u4e3a\u4f8b\u3002\u5176\u4e2dhkey\u5b57\u6bb5\u4fdd\u5b58\u7684\u662f\u8be5\u8ba2\u5355\u7ed3\u6784\u4f53\u7684hashkey\uff0c\u5728\u53d1\u751f\u6563\u5217\u51b2\u7a81\u65f6\uff0c\u5229\u7528hashkey\u5b57\u6bb5\u662f\u5426\u76f8\u540c\u53ef\u5224\u65ad\u6211\u4eec\u662f\u5426\u627e\u5230\u4e86\u60f3\u8981\u7684\u8ba2\u5355\u7ed3\u6784\u4f53<\/p>\n\n\n\n<p>\u7136\u540e\uff0c\u6211\u4eec\u9700\u8981\u5b9a\u4e49hash\u51fd\u6570\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#define HTBL_BKT_CNT 7\n\nstatic inline int hash_func(int order_no)\r\n{\r\n    return order_no % HTBL_BKT_CNT;\r\n}<\/code><\/pre>\n\n\n\n<p>\u8fd9\u91cc\u4e3a\u4e86\u65b9\u4fbf\u7406\u89e3\uff0c\u6211\u4eec\u76f4\u63a5\u7528\u8ba2\u5355\u53f7\u4e0ehashtable\u6876\u7684\u4e2a\u6570(\u672c\u4f8b\u4e2d\u4e3a8)\u53d6\u6a21\uff0c\u8fd9\u6837\u5c31\u80fd\u6839\u636e\u8ba2\u5355\u53f7\uff0c\u628a\u8ba2\u5355\u7ed3\u6784\u4f53\u6620\u5c04\u5230\u5176\u4e2d\u4e00\u4e2a\u6876\uff08\u5373hashlist\uff09\u4e2d\u3002<\/p>\n\n\n\n<p>\u7136\u540e\u6211\u4eec\u5b9a\u4e49\u5e76\u521d\u59cb\u5316hashtable\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/hashtable buckets\r\nstruct hlist_head h_ord_tbl&#91;HTBL_BKT_CNT];\n\nfor (i = 0 ; i &lt; HTBL_BKT_CNT ; i++) \r\n{\r\n    INIT_HLIST_HEAD(&amp;h_ord_tbl&#91;i]);\r\n}<\/code><\/pre>\n\n\n\n<p>\u5b9a\u4e49hashtable\u5176\u5b9e\u5c31\u662f\u5b9a\u4e49\u4e00\u4e2ahashlist\u7684\u6570\u7ec4\uff0c\u6bcf\u4e2ahashlist\u90fd\u662fhashtable\u7684\u4e00\u4e2a\u6876\u3002\u521d\u59cb\u5316\u4e5f\u5f88\u7b80\u5355\uff0c\u5c31\u662f\u5bf9\u6bcf\u4e2ahashlist\u8c03\u7528INIT_HLIST_HEAD\uff0c\u628a\u5934\u7ed3\u70b9\u7684first\u6307\u9488\u7f6e\u7a7a\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">5.\u589e\u52a0\u5143\u7d20<\/h2>\n\n\n\n<p>\u589e\u52a0\u5143\u7d20\u7684\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/add elements to table\r\nfor (ord_no = 0 ; ord_no &lt; ORDER_CNT ; ord_no++) \r\n{\r\n\tp_ord = (struct order_node_t *)malloc(sizeof(struct order_node_t));\r\n\tp_ord->hkey = ord_no;\r\n\tp_ord->order_ref = ord_no;\r\n\tINIT_HLIST_NODE(&amp;p_ord->hnode);\r\n\r\n\tbkt_idx = hash_func(ord_no);\r\n\thlist_add_head(&amp;p_ord->hnode, &amp;h_ord_tbl&#91;bkt_idx]);\r\n}<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>\u65b0\u5efa\u4e00\u4e2a\u7528\u6237\u81ea\u5b9a\u4e49\u7684\u7ed3\u6784\u4f53<\/li><li>\u521d\u59cb\u5316\u4ed6\u7684hashlist\u8282\u70b9\u5b57\u6bb5<\/li><li>\u8c03\u7528\u81ea\u5b9a\u4e49\u7684hash\u51fd\u6570\uff0c\u5c06\u8ba2\u5355\u53f7\u6620\u5c04\u4e3ahashtable\u6876\u6570\u7ec4\u7684\u4e00\u4e2a\u4e0b\u6807\uff0c\u4ece\u800c\u627e\u5230\u4e86\u5bf9\u5e94\u7684hashlist<\/li><li>\u7136\u540e\u5c06\u81ea\u5df1\u63d2\u5165\u8be5hashlist\u5373\u53ef<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">6.\u67e5\u627e<\/h2>\n\n\n\n<p>\u67e5\u627e\u6570\u636e\u7684\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/search from hashtable\r\nfor (ord_no = 0 ; ord_no &lt; ORDER_CNT ; ord_no++) \r\n{\r\n\tbkt_idx = hash_func(ord_no);\r\n\thlist_for_each_entry(p_ord, &amp;h_ord_tbl&#91;bkt_idx], hnode)\r\n\t{\r\n\t\tif (p_ord->hkey == ord_no)\r\n\t\t\tprintf(\"%ld, %ld\\n\", ord_no, p_ord->order_ref);\r\n\t}\r\n}<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>\u4ecd\u7136\u662f\u5148\u8c03\u7528\u81ea\u5b9a\u4e49\u7684hash\u51fd\u6570\uff0c\u5c06\u8ba2\u5355\u53f7\u6620\u5c04\u4e3ahashtable\u6876\u6570\u7ec4\u7684\u4e00\u4e2a\u4e0b\u6807\uff0c\u4ece\u800c\u627e\u5230\u4e86\u5bf9\u5e94\u7684hashlist<\/li><li>\u7136\u540e<strong>\u904d\u5386<\/strong>\u8be5hashlist\uff0c\u627e\u5230\u4e0e\u8981\u67e5\u627e\u7684\u5143\u7d20hashkey\u76f8\u540c\u7684\u90a3\u4e2a<\/li><\/ul>\n\n\n\n<p>\u6ce8\u610f\uff0c\u5982\u679chash\u6876\u4e2d\u7684hashlist\u7684\u957f\u5ea6\u5927\u4e8e1\uff0c\u90a3\u4e48\u5c31\u662f\u53d1\u751f\u4e86\u51b2\u7a81\uff0c\u53d1\u751f\u51b2\u7a81\u65f6\u8981\u5bf9hashlist\u8fdb\u884c\u904d\u5386\uff0c\u56e0\u6b64\u51b2\u7a81\u8fc7\u591a\u662f\u4f1a\u5f71\u54cdhashtable\u7684\u6027\u80fd\u7684\uff0c\u7528\u6237\u53ef\u901a\u8fc7\u5408\u7406\u7684\u8bbe\u8ba1hash\u51fd\u6570\u6765\u964d\u4f4e\u51b2\u7a81\u6982\u7387\uff0c\u8fdb\u800c\u63d0\u9ad8hashtable\u7684\u6027\u80fd\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">7.\u904d\u5386<\/h2>\n\n\n\n<p>hashtable\u7684\u904d\u5386\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/hashtable foreach\r\nfor (bkt_idx = 0 ; bkt_idx &lt; HTBL_BKT_CNT ; bkt_idx++) \r\n{\r\n\thlist_for_each_entry(p_ord, &amp;h_ord_tbl&#91;bkt_idx], hnode)\r\n\t\tprintf(\"%ld\\n\", p_ord->order_ref);\r\n}<\/code><\/pre>\n\n\n\n<p>\u5176\u5b9e\u5c31\u662f\u904d\u5386\u6876\uff0c\u7136\u540e\u904d\u5386\u6876\u4e2d(hashlist)\u7684\u5143\u7d20\uff0c\u8fd0\u884c\u6548\u679c\u5982\u4e0b\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"115\" height=\"226\" src=\"http:\/\/www.wangkaixuan.tech\/wp-content\/uploads\/2020\/12\/image.png\" alt=\"\" class=\"wp-image-1007\"\/><\/figure>\n\n\n\n<p>\u6563\u5217\u51fd\u6570\u7684\u5b58\u5728\uff0c\u4f1a\u5bfc\u81f4hashtable\u4e2d\u7684\u5143\u7d20\u5927\u81f4\u5747\u5300\u4e14\u5206\u6563\u5730\u5b58\u50a8\u5728hashtable\u7684\u6bcf\u4e2a\u6876(hashlist)\u4e2d\uff0c\u56e0\u6b64\u6309\u7167\u4e0a\u8ff0\u8fc7\u7a0b\u8fdb\u884c\u904d\u5386\u65f6\uff0c\u4f60\u4f1a\u53d1\u73b0\u6570\u636e\u4f3c\u4e4e\u662f\u65e0\u5e8f\uff0c\u8fd9\u4e5f\u5c31\u662fstl\u7684hash\u5bb9\u5668\u4e3a\u4ec0\u4e48\u90fd\u53ebunordered_xxx\u7684\u539f\u56e0\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1.\u524d\u8a00 \u5728\u8bfb\u8fd9\u7bc7\u6587\u7ae0\u4e4b\u524d\uff0c\u5efa\u8bae\u60a8\u5148\u8bfb\u4e00\u4e0b\u4e0a\u4e00\u7bc7\u4ecb\u7ecdlinux\u5185\u6838list\u5b9e\u73b0\u7684\u6587\u7ae0\uff0c\u94fe\u63a5\u5728\u6b64\u3002\u7531\u4e8e\u5f88\u591a\u539f\u7406\u6027\u7684\u4e1c\u897f\u5df2\u7ecf\u5728\u4e0a\u8ff0\u6587\u7ae0\u4e2d\u8fdb\u884c\u4e86\u9610\u91ca\uff0c\u56e0\u6b64\u8fd9\u7bc7\u6587\u7ae0\u4e2d\u4e0d&#8230;<\/p>\n<p class=\"read-more\"><a class=\"btn btn-default\" href=\"http:\/\/www.wangkaixuan.tech\/?p=1003\"> Read More<span class=\"screen-reader-text\">  Read More<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[],"class_list":["post-1003","post","type-post","status-publish","format-standard","hentry","category-03-01-"],"_links":{"self":[{"href":"http:\/\/www.wangkaixuan.tech\/index.php?rest_route=\/wp\/v2\/posts\/1003","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.wangkaixuan.tech\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.wangkaixuan.tech\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.wangkaixuan.tech\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.wangkaixuan.tech\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1003"}],"version-history":[{"count":0,"href":"http:\/\/www.wangkaixuan.tech\/index.php?rest_route=\/wp\/v2\/posts\/1003\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.wangkaixuan.tech\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1003"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.wangkaixuan.tech\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1003"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.wangkaixuan.tech\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1003"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}