{"id":1437,"date":"2026-05-15T16:48:50","date_gmt":"2026-05-15T08:48:50","guid":{"rendered":"https:\/\/yunyanglib.cn\/?p=1437"},"modified":"2026-05-15T16:50:51","modified_gmt":"2026-05-15T08:50:51","slug":"%e3%80%90java%e3%80%91priorityqueue%e8%af%a6%e8%a7%a3%ef%bc%9a%e4%bb%8e%e4%bd%bf%e7%94%a8%e5%88%b0%e5%ba%95%e5%b1%82%e5%8e%9f%e7%90%86%e5%85%a8%e8%a7%a3%e6%9e%90","status":"publish","type":"post","link":"https:\/\/yunyanglib.cn\/?p=1437","title":{"rendered":"\u3010Java\u3011PriorityQueue\u8be6\u89e3\uff1a\u4ece\u4f7f\u7528\u5230\u5e95\u5c42\u539f\u7406\u5168\u89e3\u6790"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u5927\u5bb6\u597d\uff0c\u6211\u662f\u4e91\u626c\uff5e \u4eca\u5929\u60f3\u548c\u5927\u5bb6\u6df1\u5165\u804a\u804a Java \u4e2d\u7684 PriorityQueue\uff0c\u8fd9\u4e2a\u57fa\u4e8e\u4f18\u5148\u7ea7\u5806\u7684\u4f18\u5148\u961f\u5217\u5b9e\u73b0\uff0c\u5728\u65e5\u5e38\u5f00\u53d1\u548c\u7b97\u6cd5\u573a\u666f\u4e2d\u90fd\u7279\u522b\u5b9e\u7528\u3002\u5b83\u6700\u7279\u522b\u7684\u5730\u65b9\u5728\u4e8e\u6253\u7834\u4e86\u666e\u901a\u961f\u5217 \u201c\u5148\u8fdb\u5148\u51fa\u201d \u7684\u89c4\u5219\uff0c\u80fd\u6309\u7167\u5143\u7d20\u4f18\u5148\u7ea7\u81ea\u52a8\u6392\u5e8f\uff0c\u63d2\u5165\u548c\u5220\u9664\u64cd\u4f5c\u7684\u65f6\u95f4\u590d\u6742\u5ea6\u4ec5\u4e3a O (log n)\uff0c\u6548\u7387\u5f88\u9ad8\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e00\u3001PriorityQueue \u7b80\u4ecb<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">PriorityQueue \u662f Java \u96c6\u5408\u6846\u67b6\u4e2d\u7684\u91cd\u8981\u6210\u5458\uff0c\u5e95\u5c42\u57fa\u4e8e\u4f18\u5148\u7ea7\u5806\u5b9e\u73b0\uff0c\u6838\u5fc3\u4f5c\u7528\u662f<strong>\u7ef4\u62a4\u5143\u7d20\u7684\u4f18\u5148\u7ea7\u987a\u5e8f<\/strong>\u3002\u5f53\u6211\u4eec\u63d2\u5165\u5143\u7d20\u65f6\uff0c\u5b83\u4f1a\u81ea\u52a8\u5c06\u5143\u7d20\u653e\u5230\u5408\u9002\u7684\u4f4d\u7f6e\uff1b\u53d6\u51fa\u5143\u7d20\u65f6\uff0c\u59cb\u7ec8\u662f\u4f18\u5148\u7ea7\u6700\u9ad8\u7684\u5143\u7d20\u5148\u51fa\u961f\u3002\u8fd9\u4e00\u7279\u6027\u8ba9\u5b83\u5728\u4efb\u52a1\u8c03\u5ea6\u3001\u4e8b\u4ef6\u5904\u7406\u3001\u7b97\u6cd5\u5b9e\u73b0\uff08\u6bd4\u5982 Dijkstra\u3001Prim \u7b97\u6cd5\uff09\u7b49\u573a\u666f\u4e2d\u5927\u653e\u5f02\u5f69\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e8c\u3001PriorityQueue \u5b9e\u6218\u4f7f\u7528<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">1. \u57fa\u7840\u4f7f\u7528\u6d41\u7a0b<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u9996\u5148\u6211\u4eec\u6765\u770b\u6700\u57fa\u672c\u7684\u521b\u5efa\u3001\u6dfb\u52a0\u3001\u904d\u5386\u64cd\u4f5c\uff0c\u4ee3\u7801\u793a\u4f8b\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import java.util.PriorityQueue;\n\npublic class PriorityQueueDemo {\n    public static void main(String&#91;] args) {\n        \/\/ 1. \u521b\u5efaPriorityQueue\u5bf9\u8c61\uff08\u9ed8\u8ba4\u5c0f\u9876\u5806\uff0c\u81ea\u7136\u6392\u5e8f\uff09\n        PriorityQueue&lt;String&gt; priorityQueue = new PriorityQueue&lt;&gt;();\n\n        \/\/ 2. \u6dfb\u52a0\u5143\u7d20\uff08offer()\u65b9\u6cd5\uff0c\u63d2\u5165\u5931\u8d25\u8fd4\u56defalse\uff09\n        priorityQueue.offer(\"MySQL\");\n        priorityQueue.offer(\"\u4e91\u626c\");\n        priorityQueue.offer(\"Java\u7f16\u7a0b\");\n\n        \/\/ 3. \u904d\u5386\u5e76\u6253\u5370\u5143\u7d20\uff08poll()\u65b9\u6cd5\u53d6\u51fa\u5e76\u5220\u9664\u961f\u9996\u5143\u7d20\uff09\n        System.out.println(\"\u9ed8\u8ba4\u4f18\u5148\u7ea7\u904d\u5386\u7ed3\u679c\uff1a\");\n        while (!priorityQueue.isEmpty()) {\n            System.out.print(priorityQueue.poll() + \" \");\n        }\n        \/\/ \u8f93\u51fa\u7ed3\u679c\uff1aJava\u7f16\u7a0b MySQL \u4e91\u626c\uff08\u6309\u5b57\u7b26\u4e32\u81ea\u7136\u6392\u5e8f\uff09\n    }\n}\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">2. \u6307\u5b9a\u4f18\u5148\u7ea7\u987a\u5e8f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0cPriorityQueue \u662f\u5c0f\u9876\u5806\uff08\u81ea\u7136\u6392\u5e8f\uff09\uff0c\u5982\u679c\u6211\u4eec\u9700\u8981\u5927\u9876\u5806\u6216\u8005\u81ea\u5b9a\u4e49\u6392\u5e8f\u89c4\u5219\uff0c\u53ef\u4ee5\u901a\u8fc7\u4f20\u5165<code>Comparator<\/code>\u5b9e\u73b0\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import java.util.Comparator;\nimport java.util.PriorityQueue;\n\npublic class PriorityQueueCustomDemo {\n    public static void main(String&#91;] args) {\n        \/\/ \u521b\u5efa\u5927\u9876\u5806\uff08\u53cd\u8f6c\u81ea\u7136\u6392\u5e8f\uff09\n        PriorityQueue&lt;String&gt; maxHeap = new PriorityQueue&lt;&gt;(Comparator.reverseOrder());\n\n        maxHeap.offer(\"MySQL\");\n        maxHeap.offer(\"\u4e91\u626c\");\n        maxHeap.offer(\"Java\u7f16\u7a0b\");\n\n        System.out.println(\"\u5927\u9876\u5806\u904d\u5386\u7ed3\u679c\uff1a\");\n        while (!maxHeap.isEmpty()) {\n            System.out.print(maxHeap.poll() + \" \");\n        }\n        \/\/ \u8f93\u51fa\u7ed3\u679c\uff1a\u4e91\u626c MySQL Java\u7f16\u7a0b \uff08\u6309\u5b57\u7b26\u4e32\u53cd\u8f6c\u6392\u5e8f\uff09\n\n        \/\/ \u81ea\u5b9a\u4e49\u5bf9\u8c61\u6392\u5e8f\uff08\u4ee5User\u7684age\u4e3a\u4f8b\uff09\n        PriorityQueue&lt;User&gt; userHeap = new PriorityQueue&lt;&gt;(Comparator.comparingInt(User::getAge));\n        userHeap.offer(new User(\"1\",\"\u5f20\u4e09\", 25));\n        userHeap.offer(new User(\"2\",\"\u674e\u56db\", 20));\n        userHeap.offer(new User(\"3\",\"\u738b\u4e94\", 30));\n\n        System.out.println(\"\\n\u81ea\u5b9a\u4e49\u5bf9\u8c61\u6392\u5e8f\u7ed3\u679c\uff1a\");\n        while (!userHeap.isEmpty()) {\n            User user = userHeap.poll();\n            System.out.print(user.getName() + \"(\" + user.getAge() + \") \");\n        }\n        \/\/ \u8f93\u51fa\u7ed3\u679c\uff1a\u674e\u56db(20) \u5f20\u4e09(25) \u738b\u4e94(30)\n    }\n    \n    static class User {\n        private String id;\n        private String name;\n        private int age;\n        \n        public User(String id, String name, int age) {\n            this.id = id;\n            this.name = name;\n            this.age = age;\n        }\n        \n        public String getId() { return id; }\n        public String getName() { return name; }\n        public int getAge() { return age; }\n    }\n}\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e09\u3001\u5e95\u5c42\u5b9e\u73b0\u539f\u7406<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">1. \u5806\u7ed3\u6784\u57fa\u7840<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">PriorityQueue \u7684\u5e95\u5c42\u662f<strong>\u5b8c\u5168\u4e8c\u53c9\u6811<\/strong>\u5b9e\u73b0\u7684\u5806\uff0c\u9ed8\u8ba4\u662f\u5c0f\u9876\u5806\uff08\u6bcf\u4e2a\u8282\u70b9\u7684\u503c\u2264\u5176\u5b50\u8282\u70b9\u7684\u503c\uff09\u3002\u5806\u7684\u5b58\u50a8\u975e\u5e38\u9ad8\u6548\uff0c\u76f4\u63a5\u4f7f\u7528\u6570\u7ec4\u5373\u53ef\uff0c\u65e0\u9700\u989d\u5916\u6307\u9488\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u7236\u8282\u70b9\u4e0b\u6807\uff1a<code>(i - 1) \/ 2<\/code>\uff08i \u4e3a\u5f53\u524d\u8282\u70b9\u4e0b\u6807\uff09<\/li>\n\n\n\n<li>\u5de6\u5b50\u8282\u70b9\u4e0b\u6807\uff1a<code>2 * i + 1<\/code><\/li>\n\n\n\n<li>\u53f3\u5b50\u8282\u70b9\u4e0b\u6807\uff1a<code>2 * i + 2<\/code><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u6bd4\u5982\u6570\u7ec4<code>[a, b, c, d, e]<\/code>\u5bf9\u5e94\u7684\u5806\u7ed3\u6784\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>     a (0)    \/\/ \u6839\u8282\u70b9\n    \/ \\\n  b(1) c(2)   \/\/ \u7b2c\u4e8c\u5c42\n  \/ \\\nd(3) e(4)     \/\/ \u7b2c\u4e09\u5c42\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">2. \u6838\u5fc3\u65b9\u6cd5\u5256\u6790<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">PriorityQueue \u7684\u6838\u5fc3\u65b9\u6cd5\u90fd\u56f4\u7ed5\u5806\u7684\u8c03\u6574\uff08\u4e0a\u6d6e siftUp\u3001\u4e0b\u6c89 siftDown\uff09\u5c55\u5f00\uff0c\u6211\u4eec\u9010\u4e00\u89e3\u6790\uff1a<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\uff081\uff09\u6dfb\u52a0\u5143\u7d20\uff1aadd () vs offer ()<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e24\u8005\u8bed\u4e49\u4e00\u81f4\uff0c\u90fd\u662f\u63d2\u5165\u5143\u7d20\uff0c\u533a\u522b\u4ec5\u5728\u4e8e\u63d2\u5165\u5931\u8d25\u65f6\u7684\u5904\u7406\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>add(E e)<\/code>\uff1a\u63d2\u5165\u5931\u8d25\u629b\u51fa<code>IllegalStateException<\/code><\/li>\n\n\n\n<li><code>offer(E e)<\/code>\uff1a\u63d2\u5165\u5931\u8d25\u8fd4\u56de<code>false<\/code>\uff08\u66f4\u63a8\u8350\u4f7f\u7528\uff09<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u5e95\u5c42\u5b9e\u73b0\u903b\u8f91\uff1a\u5148\u6269\u5bb9\uff08\u5982\u679c\u6570\u7ec4\u5df2\u6ee1\uff09\uff0c\u518d\u5c06\u5143\u7d20\u63d2\u5165\u6570\u7ec4\u672b\u5c3e\uff0c\u6700\u540e\u901a\u8fc7<code>siftUp<\/code>\u8c03\u6574\u5806\u7ed3\u6784\uff0c\u4fdd\u8bc1\u5806\u7684\u6027\u8d28\u3002\u5173\u952e\u6e90\u7801\u7247\u6bb5\uff08\u7b80\u5316\uff09\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>public boolean offer(E e) {\n    if (e == null)\n        throw new NullPointerException();\n    modCount++;\n    int i = size;\n    if (i &gt;= queue.length)\n        grow(i + 1); \/\/ \u6269\u5bb9\n    size = i + 1;\n    if (i == 0)\n        queue&#91;0] = e; \/\/ \u7a7a\u5806\u76f4\u63a5\u63d2\u5165\u6839\u8282\u70b9\n    else\n        siftUp(i, e); \/\/ \u4e0a\u6d6e\u8c03\u6574\n    return true;\n}\n<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">\uff082\uff09\u83b7\u53d6\u5143\u7d20\uff1aelement () vs peek ()<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e24\u8005\u90fd\u7528\u4e8e\u83b7\u53d6\u961f\u9996\u5143\u7d20\uff08\u4e0d\u5220\u9664\uff09\uff0c\u533a\u522b\u5728\u4e8e\u961f\u5217\u4e3a\u7a7a\u65f6\u7684\u5904\u7406\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>element()<\/code>\uff1a\u629b\u51fa<code>NoSuchElementException<\/code><\/li>\n\n\n\n<li><code>peek()<\/code>\uff1a\u8fd4\u56de<code>null<\/code>\uff08\u66f4\u63a8\u8350\u4f7f\u7528\uff09<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u5e95\u5c42\u76f4\u63a5\u8fd4\u56de\u6570\u7ec4 0 \u4e0b\u6807\u5904\u7684\u5143\u7d20\uff08\u5806\u9876\uff09\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>public E peek() {\n    return (size == 0) ? null : (E) queue&#91;0];\n}\n<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">\uff083\uff09\u5220\u9664\u5143\u7d20\uff1aremove () vs poll ()<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e24\u8005\u90fd\u7528\u4e8e\u83b7\u53d6\u5e76\u5220\u9664\u961f\u9996\u5143\u7d20\uff0c\u533a\u522b\u5728\u4e8e\u961f\u5217\u4e3a\u7a7a\u65f6\u7684\u5904\u7406\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>remove()<\/code>\uff1a\u629b\u51fa<code>NoSuchElementException<\/code><\/li>\n\n\n\n<li><code>poll()<\/code>\uff1a\u8fd4\u56de<code>null<\/code>\uff08\u66f4\u63a8\u8350\u4f7f\u7528\uff09<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u5e95\u5c42\u903b\u8f91\uff1a\u53d6\u51fa\u5806\u9876\u5143\u7d20\uff0c\u5c06\u6570\u7ec4\u672b\u5c3e\u5143\u7d20\u79fb\u5230\u5806\u9876\uff0c\u518d\u901a\u8fc7<code>siftDown<\/code>\u8c03\u6574\u5806\u7ed3\u6784\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>public E poll() {\n    if (size == 0)\n        return null;\n    int s = --size;\n    modCount++;\n    E result = (E) queue&#91;0]; \/\/ \u5806\u9876\u5143\u7d20\n    E x = (E) queue&#91;s];\n    queue&#91;s] = null;\n    if (s != 0)\n        siftDown(0, x); \/\/ \u4e0b\u6c89\u8c03\u6574\n    return result;\n}\n<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">\uff084\uff09\u5220\u9664\u6307\u5b9a\u5143\u7d20\uff1aremove (Object o)<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">\u7528\u4e8e\u5220\u9664\u961f\u5217\u4e2d\u4e0e\u6307\u5b9a\u5bf9\u8c61\u76f8\u7b49\u7684\u5143\u7d20\uff0c\u5220\u9664\u540e\u9700\u8981\u8c03\u6574\u5806\u7ed3\u6784\uff0c\u65f6\u95f4\u590d\u6742\u5ea6\u4e3a O (n)\uff08\u9700\u5148\u904d\u5386\u627e\u5230\u5143\u7d20\uff09\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>public boolean remove(Object o) {\n    int i = indexOf(o);\n    if (i == -1)\n        return false;\n    else {\n        removeAt(i); \/\/ \u8c03\u6574\u5806\u7ed3\u6784\n        return true;\n    }\n}\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u56db\u3001\u603b\u7ed3<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">PriorityQueue \u662f Java \u4e2d\u5904\u7406\u4f18\u5148\u7ea7\u5143\u7d20\u7684\u5229\u5668\uff0c\u6838\u5fc3\u8981\u70b9\u603b\u7ed3\u5982\u4e0b\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u5e95\u5c42\u57fa\u4e8e\u5806\uff08\u5b8c\u5168\u4e8c\u53c9\u6811\uff09\u5b9e\u73b0\uff0c\u4f7f\u7528\u6570\u7ec4\u5b58\u50a8\uff0c\u6548\u7387\u9ad8\uff1b<\/li>\n\n\n\n<li>\u9ed8\u8ba4\u5c0f\u9876\u5806\uff0c\u652f\u6301\u901a\u8fc7 Comparator \u81ea\u5b9a\u4e49\u6392\u5e8f\u89c4\u5219\uff1b<\/li>\n\n\n\n<li>\u63d2\u5165 \/ \u5220\u9664\u5143\u7d20\u65f6\u95f4\u590d\u6742\u5ea6 O (log n)\uff0c\u67e5\u8be2\u5806\u9876\u5143\u7d20 O (1)\uff1b<\/li>\n\n\n\n<li>\u5e38\u7528\u65b9\u6cd5\u63a8\u8350\u4f7f\u7528<code>offer()<\/code>\u3001<code>peek()<\/code>\u3001<code>poll()<\/code>\uff0c\u907f\u514d\u629b\u51fa\u5f02\u5e38\uff1b<\/li>\n\n\n\n<li>\u9002\u7528\u4e8e\u4efb\u52a1\u8c03\u5ea6\u3001\u7b97\u6cd5\u5b9e\u73b0\u7b49\u9700\u8981\u6309\u4f18\u5148\u7ea7\u5904\u7406\u5143\u7d20\u7684\u573a\u666f\u3002<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">\u5982\u679c\u9700\u8981\u4f7f\u7528 PriorityQueue \u5b58\u50a8\u81ea\u5b9a\u4e49\u5bf9\u8c61\uff0c\u8bb0\u5f97\u8ba9\u5bf9\u8c61\u5b9e\u73b0<code>Comparable<\/code>\u63a5\u53e3\uff0c\u6216\u8005\u5728\u521b\u5efa\u961f\u5217\u65f6\u4f20\u5165<code>Comparator<\/code>\uff0c\u5426\u5219\u4f1a\u629b\u51fa<code>ClassCastException<\/code>\u54e6\uff5e \u5927\u5bb6\u5728\u5b9e\u9645\u5f00\u53d1\u4e2d\u6709\u6ca1\u6709\u7528\u8fc7 PriorityQueue\uff1f\u6b22\u8fce\u5728\u8bc4\u8bba\u533a\u5206\u4eab\u4f60\u7684\u4f7f\u7528\u573a\u666f\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5927\u5bb6\u597d\uff0c\u6211\u662f\u4e91\u626c\uff5e \u4eca\u5929\u60f3\u548c\u5927\u5bb6\u6df1\u5165\u804a\u804a Java \u4e2d\u7684 PriorityQueue\uff0c\u8fd9\u4e2a\u57fa\u4e8e\u4f18\u5148\u7ea7\u5806\u7684\u4f18\u5148\u961f<\/p>\n<div class=\"more-link\">\n\t\t\t\t <a href=\"https:\/\/yunyanglib.cn\/?p=1437\" class=\"link-btn theme-btn\"><span>Read More <\/span> <i class=\"fa fa-caret-right\"><\/i><\/a>\n\t\t\t<\/div>\n","protected":false},"author":1,"featured_media":1482,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[15],"class_list":["post-1437","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-java","tag-java"],"_links":{"self":[{"href":"https:\/\/yunyanglib.cn\/index.php?rest_route=\/wp\/v2\/posts\/1437","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yunyanglib.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yunyanglib.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yunyanglib.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/yunyanglib.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1437"}],"version-history":[{"count":7,"href":"https:\/\/yunyanglib.cn\/index.php?rest_route=\/wp\/v2\/posts\/1437\/revisions"}],"predecessor-version":[{"id":1484,"href":"https:\/\/yunyanglib.cn\/index.php?rest_route=\/wp\/v2\/posts\/1437\/revisions\/1484"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/yunyanglib.cn\/index.php?rest_route=\/wp\/v2\/media\/1482"}],"wp:attachment":[{"href":"https:\/\/yunyanglib.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1437"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yunyanglib.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1437"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yunyanglib.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1437"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}