{"id":2273,"date":"2017-03-02T11:41:41","date_gmt":"2017-03-02T03:41:41","guid":{"rendered":"https:\/\/ai.zhousir.top\/?p=2273"},"modified":"2026-08-18T12:58:52","modified_gmt":"2026-08-18T04:58:52","slug":"%e5%85%b3%e4%ba%8earraylist%e7%9a%845%e9%81%93%e9%9d%a2%e8%af%95%e9%a2%98","status":"publish","type":"post","link":"https:\/\/ai.zhousir.top\/?p=2273","title":{"rendered":"\u5173\u4e8eArrayList\u76845\u9053\u9762\u8bd5\u9898"},"content":{"rendered":"<section id=\"wenyan\" style=\"font-family: system-ui, 'Apple Color Emoji', 'Segoe UI', 'Segoe UI Symbol', 'Noto Sans', Roboto, sans-serif; line-height: 1.75; font-size: 16px; color: #000000; caret-color: #000000;\" data-provider=\"WenYan\">\n<blockquote style=\"margin: 20px 0px; display: block; font-size: 0.9em; overflow: auto; border-left: 3px solid #ef7060; color: #6a737d; padding: 10px 10px 10px 20px; background: #fff9f9;\">\n<p style=\"margin: 1em 0px;\">\u4ee5\u9762\u8bd5\u5b98\u89c6\u89d2\u770b\u8fc7\u4e0d\u5c11 Java \u9762\u8bd5\u540e\uff0c\u4e0b\u9762 5 \u9053 ArrayList \u9898\u6700\u5bb9\u6613\u8ba9\u521d\u4e2d\u7ea7\u540c\u5b66\u542b\u7cca\u8fc7\u53bb\u3002\u7b54\u6e05\u695a\uff0c\u5206\u6570\u4f1a\u597d\u770b\u5f88\u591a\u3002<\/p>\n<\/blockquote>\n<p style=\"margin: 1em 0px;\"><a href=\"https:\/\/ai.zhousir.top\/wp-content\/uploads\/2018\/02\/2280210133826.png\" rel=\"fancybox\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-2260\" src=\"https:\/\/ai.zhousir.top\/wp-content\/uploads\/2018\/02\/2280210133826.png\" alt=\"2280210133826\" width=\"641\" height=\"400\" \/><\/a><\/p>\n<hr>\n<h2 style=\"margin: 1.2em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.3em; border-bottom: 2px solid #ef7060; display: flex;\"><span style=\"display: inline-block; font-weight: bold; background: #ef7060; color: #ffffff; padding: 3px 10px 1px; border-top-right-radius: 3px; border-top-left-radius: 3px; margin-right: 3px;\">\u4e00\u3001ArrayList \u7684\u5927\u5c0f\u5982\u4f55\u81ea\u52a8\u589e\u52a0\uff1f<\/span><\/h2>\n<p style=\"margin: 1em 0px;\">\u8fd9\u662f\u6700\u6709\u6280\u5de7\u7684\u4e00\u9898\uff0c\u591a\u6570\u4eba\u7b54\u4e0d\u4e0a\u7ec6\u8282\u3002\u5f80 ArrayList \u91cc add \u65f6\uff0cJava \u4f1a\u68c0\u67e5\u73b0\u6709\u6570\u7ec4\u591f\u4e0d\u591f\u88c5\u65b0\u5bf9\u8c61\u3002\u4e0d\u591f\u5c31\u65b0\u5efa\u66f4\u957f\u7684\u6570\u7ec4\uff0c\u7528 <code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">Arrays.copyOf<\/code> \u628a\u65e7\u6570\u636e\u62f7\u8fc7\u53bb\uff0c\u518d\u8ba9 <code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">elementData<\/code> \u6307\u5411\u65b0\u6570\u7ec4\u3002<\/p>\n<p style=\"margin: 1em 0px;\">\u4ee3\u7801\u6458\u81ea <a class=\"external\" href=\"http:\/\/grepcode.com\/file\/repository.grepcode.com\/java\/root\/jdk\/openjdk\/6-b14\/java\/util\/ArrayList.java\" target=\"_blank\" rel=\"nofollow\">GrepCode.com \u4e2d\u7684 Java ArrayList Code<\/a>\uff08OpenJDK 6\uff09\uff1a<\/p>\n<section style=\"display: block; background-repeat: no-repeat; width: 100%; height: 16px;\"><\/section>\n<pre style=\"overflow: auto hidden; word-break: normal; white-space: pre; tab-size: 2; border-radius: 5px; line-height: 2; margin: 1em 0.5em; padding: 0.5em; box-shadow: rgba(0, 0, 0, 0.55) 0px 1px 5px; font-size: 10px; background: #002b36; max-width: 100%; overflow-wrap: normal;\"><code class=\"hljs\" style=\"word-break: normal; white-space: nowrap; tab-size: 2; font-size: 10px; font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; display: block; margin: 0.5em; padding: 3px 5px; overflow-x: auto; color: #93a1a1; background: #002b36; overflow-wrap: normal;\">\/\/ArrayList Add\u65b9\u6cd5\uff1a\npublic boolean add(E e){\n    ensureCapacity(size+1); \/\/Increment modCount!!\n    elementData[size++] = e;\n    return true;\n}\n\n\/\/ensureCapacity\u65b9\u6cd5\uff1a\u5904\u7406ArrayList\u7684\u5927\u5c0f\npublic void ensureCapacity(int minCapacity) {\n    modCount++;\n    int oldCapacity = elementData.length;\n    if (minCapacity &gt; oldCapacity) {\n    Object oldData[] = elementData;\n    int newCapacity = (oldCapacity * 3)\/2 + 1;\n    if (newCapacity &lt; minCapacity)\n        newCapacity = minCapacity;\n    \/\/ minCapacity is usually close to size, so this is a win:\n    elementData = Arrays.copyOf(elementData, newCapacity);\n    }\n}<\/code><\/pre>\n<p style=\"margin: 1em 0px;\">\u6ce8\u610f\u4e09\u4ef6\u4e8b\uff1a\u65b0\u5efa\u6570\u7ec4\uff1b\u65e7\u5bf9\u8c61\u62f7\u5230\u65b0\u6570\u7ec4\uff1b\u73b0\u6709\u5f15\u7528\u6539\u6307\u5411\u65b0\u6570\u7ec4\u3002\u6269\u5bb9\u516c\u5f0f\u5728 JDK 6 \u662f <code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">(oldCapacity * 3)\/2 + 1<\/code>\u3002<\/p>\n<hr>\n<h2 style=\"margin: 1.2em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.3em; border-bottom: 2px solid #ef7060; display: flex;\"><span style=\"display: inline-block; font-weight: bold; background: #ef7060; color: #ffffff; padding: 3px 10px 1px; border-top-right-radius: 3px; border-top-left-radius: 3px; margin-right: 3px;\">\u4e8c\u3001\u4ec0\u4e48\u65f6\u5019\u7528 ArrayList\uff0c\u4ec0\u4e48\u65f6\u5019\u7528 LinkedList\uff1f<\/span><\/h2>\n<p style=\"margin: 1em 0px;\">\u8bbf\u95ee\u6bd4\u63d2\u5165\/\u5220\u9664\u66f4\u9891\u7e41\u65f6\u7528 ArrayList\uff1b\u5728\u67d0\u4e2a\u4e0b\u6807\u9891\u7e41\u63d2\u5165\u5220\u9664\u3001\u6216\u51e0\u4e4e\u4e0d\u968f\u673a\u8bbf\u95ee\u65f6\u7528 LinkedList\u3002<\/p>\n<p style=\"margin: 1em 0px;\">\u539f\u56e0\uff1aArrayList \u6309\u4e0b\u6807\u8bbf\u95ee\u6700\u574f\u662f O(1)\uff0cLinkedList \u53ef\u80fd\u662f O(n)\u3002ArrayList \u589e\u5220\u901a\u5e38\u8981 <code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">System.arraycopy<\/code>\uff0c\u5f88\u5403\u8d44\u6e90\uff0c\u6240\u4ee5\u9891\u7e41\u63d2\u5165\u5220\u9664\u65f6 LinkedList \u66f4\u597d\u3002<\/p>\n<table style=\"border-collapse: collapse; margin: 1.4em auto; max-width: 100%; table-layout: fixed; text-align: left; overflow: auto; display: table; overflow-wrap: break-word; word-break: break-all;\" width=\"817\">\n<thead>\n<tr>\n<th style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top; font-weight: bold; background-color: #fff9f9; color: #ef7060;\">\u573a\u666f<\/th>\n<th style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top; font-weight: bold; background-color: #fff9f9; color: #ef7060;\">\u66f4\u5408\u9002<\/th>\n<th style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top; font-weight: bold; background-color: #fff9f9; color: #ef7060;\">\u539f\u56e0<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">\u6309\u4e0b\u6807\u8bfb\u3001\u904d\u5386\u591a<\/td>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\"><code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">ArrayList<\/code><\/td>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">\u6570\u7ec4\u968f\u673a\u8bbf\u95ee O(1)<\/td>\n<\/tr>\n<tr>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">\u4e2d\u95f4\u9891\u7e41\u589e\u5220<\/td>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\"><code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">LinkedList<\/code><\/td>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">\u6539\u6307\u9488\uff0c\u907f\u514d\u6574\u6bb5 arraycopy<\/td>\n<\/tr>\n<tr>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">\u51e0\u4e4e\u53ea\u5f53\u961f\u5217\u5934\u5c3e\u64cd\u4f5c<\/td>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\"><code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">LinkedList<\/code> \/ \u961f\u5217\u5b9e\u73b0<\/td>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">\u4e0d\u9700\u8981\u6309\u4e0b\u6807\u8df3<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr>\n<h2 style=\"margin: 1.2em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.3em; border-bottom: 2px solid #ef7060; display: flex;\"><span style=\"display: inline-block; font-weight: bold; background: #ef7060; color: #ffffff; padding: 3px 10px 1px; border-top-right-radius: 3px; border-top-left-radius: 3px; margin-right: 3px;\">\u4e09\u3001\u628a ArrayList \u4f20\u5165\u6216\u8fd4\u56de\u65f6\uff0c\u4f55\u65f6\u6709\u5b89\u5168\u9690\u60a3\uff1f<\/span><\/h2>\n<p style=\"margin: 1em 0px;\">\u6570\u7ec4\uff08\u540c\u6837\u9002\u7528\u4e8e\u53ef\u53d8\u7684 ArrayList \u5f15\u7528\uff09\u82e5\u672a\u7ecf\u62f7\u8d1d\u5c31\u76f4\u63a5\u8d4b\u7ed9\u6210\u5458\u53d8\u91cf\uff0c\u8c03\u7528\u65b9\u4e4b\u540e\u6539\u539f\u59cb\u6570\u636e\uff0c\u65b9\u6cd5\u5185\u90e8\u770b\u5230\u7684\u90a3\u4efd\u4e5f\u4f1a\u53d8\u3002\u4e0b\u9762\u662f\u8fdd\u89c4\u4e0e\u4fee\u590d\u3002<\/p>\n<p style=\"margin: 1em 0px;\">ArrayList \u88ab\u76f4\u63a5\u8d4b\u7ed9\u6210\u5458\u53d8\u91cf\u2014\u2014\u5b89\u5168\u9690\u60a3\uff1a<\/p>\n<p style=\"margin: 1em 0px;\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-9944\" title=\"1.Array-Stored-Directly-Considered-as-Security-Violation\" src=\"http:\/\/www.importnew.com\/wp-content\/uploads\/2014\/03\/6e195cbae211d3470879ae52f62cfe39.jpg\" alt=\"\" width=\"392\" height=\"69\" \/><\/p>\n<p style=\"margin: 1em 0px;\">\u4fee\u590d\u8fd9\u4e2a\u5b89\u5168\u9690\u60a3\uff08\u5148\u62f7\u8d1d\u518d\u4fdd\u5b58\uff09\uff1a<\/p>\n<p style=\"margin: 1em 0px;\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-9945\" title=\"2.Copy-the-Array-as-a-Fix-for-the-Security-Violation\" src=\"http:\/\/www.importnew.com\/wp-content\/uploads\/2014\/03\/81523f6d0a66f53529ccc7ce4810350d.jpg\" alt=\"\" width=\"567\" height=\"135\" \/><\/p>\n<hr>\n<h2 style=\"margin: 1.2em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.3em; border-bottom: 2px solid #ef7060; display: flex;\"><span style=\"display: inline-block; font-weight: bold; background: #ef7060; color: #ffffff; padding: 3px 10px 1px; border-top-right-radius: 3px; border-top-left-radius: 3px; margin-right: 3px;\">\u56db\u3001\u5982\u4f55\u628a\u67d0\u4e2a ArrayList \u590d\u5236\u5230\u53e6\u4e00\u4e2a\uff1f<\/span><\/h2>\n<p style=\"margin: 1em 0px;\">\u51e0\u79cd\u505a\u6cd5\uff1a<\/p>\n<ol style=\"padding-left: 1rem; margin-left: 1rem; font-size: 0.9rem; list-style-type: decimal;\">\n<li>\n<section>\u4f7f\u7528 <code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">clone()<\/code>\uff0c\u4f8b\u5982 <code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">ArrayList newArray = oldArray.clone();<\/code><\/section>\n<\/li>\n<li>\n<section>\u4f7f\u7528 ArrayList \u6784\u9020\u65b9\u6cd5\uff0c\u4f8b\u5982 <code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">ArrayList myObject = new ArrayList(myTempObject);<\/code><\/section>\n<\/li>\n<li>\n<section>\u4f7f\u7528 Collection \u7684 copy \u65b9\u6cd5\u3002<\/section>\n<\/li>\n<\/ol>\n<p style=\"margin: 1em 0px;\">\u6ce8\u610f 1 \u548c 2 \u662f\u6d45\u62f7\u8d1d\uff08shallow copy\uff09\u3002<\/p>\n<hr>\n<h2 style=\"margin: 1.2em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.3em; border-bottom: 2px solid #ef7060; display: flex;\"><span style=\"display: inline-block; font-weight: bold; background: #ef7060; color: #ffffff; padding: 3px 10px 1px; border-top-right-radius: 3px; border-top-left-radius: 3px; margin-right: 3px;\">\u4e94\u3001\u6309\u4e0b\u6807\u589e\u5220\u5bf9\u8c61\u65f6\u53d1\u751f\u4e86\u4ec0\u4e48\uff1f\u5f88\u6162\u5417\uff1f<\/span><\/h2>\n<p style=\"margin: 1em 0px;\">\u589e\u5220\u8981\u8c03\u7528 <code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">System.arraycopy<\/code>\uff0c\u6548\u7387\u4f4e\u3002\u9700\u8981\u9891\u7e41\u63d2\u5165\u5220\u9664\u65f6\u6362 LinkedList \u7b49\u96c6\u5408\u3002<\/p>\n<p style=\"margin: 1em 0px;\">\u5728\u67d0\u4e2a\u7d22\u5f15 i \u5904\u6dfb\u52a0\u5143\u7d20\uff1a<\/p>\n<p style=\"margin: 1em 0px;\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-9946\" title=\"3.Adding-an-element-in-ArrayList-at-index-i\" src=\"http:\/\/www.importnew.com\/wp-content\/uploads\/2014\/03\/ecc693ad8ae2f949ff905dc41917fc41.jpg\" alt=\"\" width=\"591\" height=\"209\" \/><\/p>\n<p style=\"margin: 1em 0px;\">\u5220\u9664\u67d0\u4e2a\u7d22\u5f15 i \u5904\u7684\u5143\u7d20\uff1a<\/p>\n<p style=\"margin: 1em 0px;\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-9947\" title=\"4.Removing-an-element-in-an-ArrayList-at-index-i\" src=\"http:\/\/www.importnew.com\/wp-content\/uploads\/2014\/03\/3781a6501391ba29ea0c0540c3108430.jpg\" alt=\"\" width=\"669\" height=\"287\" \/><\/p>\n<p style=\"margin: 1em 0px;\">\u539f\u6587\u94fe\u63a5\uff1a<a class=\"external\" href=\"http:\/\/vitalflux.com\/5-tricky-interview-questions-java-arraylist\/\" target=\"_blank\" rel=\"nofollow\">vitalflux<\/a>\u3000\u7ffb\u8bd1\uff1a<a href=\"http:\/\/www.importnew.com\/\">ImportNew.com <\/a>&#8211; <a href=\"http:\/\/www.importnew.com\/author\/kobekillerjun\">kobekillerjun<\/a><br \/>\u8bd1\u6587\u94fe\u63a5\uff1a<a href=\"http:\/\/www.importnew.com\/9928.html\">http:\/\/www.importnew.com\/9928.html<\/a><\/p>\n<blockquote style=\"margin: 20px 0px; display: block; font-size: 0.9em; overflow: auto; border-left: 3px solid #ef7060; color: #6a737d; padding: 10px 10px 10px 20px; background: #fff9f9;\">\n<p style=\"margin: 1em 0px;\"><strong>\u4e00\u53e5\u8bdd\u603b\u7ed3\uff1aArrayList \u9760\u6570\u7ec4\u6269\u5bb9\uff08JDK6 \u7ea6 1.5 \u500d\uff09\u548c arraycopy \u642c\u5bb6\uff1b\u968f\u673a\u8bbf\u95ee\u5feb\u3001\u4e2d\u95f4\u589e\u5220\u6162\uff0c\u5bf9\u5916\u66b4\u9732\u524d\u8981\u62f7\u8d1d\uff0cclone\/\u6784\u9020\u90fd\u662f\u6d45\u62f7\u8d1d\u3002<\/strong><\/p>\n<\/blockquote>\n<\/section>\n","protected":false},"excerpt":{"rendered":"<p>\u4ee5\u9762\u8bd5\u5b98\u89c6\u89d2\u770b\u8fc7\u4e0d\u5c11 Java \u9762\u8bd5\u540e\uff0c\u4e0b\u9762 5 \u9053 ArrayList \u9898\u6700\u5bb9\u6613\u8ba9\u521d\u4e2d\u7ea7\u540c\u5b66\u542b\u7cca\u8fc7\u53bb\u3002\u7b54\u6e05\u695a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[74],"tags":[140],"_links":{"self":[{"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/posts\/2273"}],"collection":[{"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2273"}],"version-history":[{"count":3,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/posts\/2273\/revisions"}],"predecessor-version":[{"id":2371,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/posts\/2273\/revisions\/2371"}],"wp:attachment":[{"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2273"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2273"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2273"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}