{"id":3301,"date":"2025-03-29T15:16:22","date_gmt":"2025-03-29T07:16:22","guid":{"rendered":"https:\/\/www.laixuexila.com\/?p=3301"},"modified":"2025-03-29T15:16:22","modified_gmt":"2025-03-29T07:16:22","slug":"c-%e9%87%8d%e8%bd%bd%e8%bf%90%e7%ae%97%e7%ac%a6%e5%92%8c%e9%87%8d%e8%bd%bd%e5%87%bd%e6%95%b0","status":"publish","type":"post","link":"https:\/\/www.laixuexila.com\/index.php\/2025\/03\/29\/c-%e9%87%8d%e8%bd%bd%e8%bf%90%e7%ae%97%e7%ac%a6%e5%92%8c%e9%87%8d%e8%bd%bd%e5%87%bd%e6%95%b0\/","title":{"rendered":"C++ \u91cd\u8f7d\u8fd0\u7b97\u7b26\u548c\u91cd\u8f7d\u51fd\u6570"},"content":{"rendered":"\n<p>C++ \u5141\u8bb8\u4f60\u4e3a\u7528\u6237\u81ea\u5b9a\u4e49\u7684\u7c7b\u578b\uff08\u7c7b\uff09\u91cd\u8f7d\u8fd0\u7b97\u7b26\u548c\u51fd\u6570\u3002\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\uff0c\u53ef\u4ee5\u4f7f\u5bf9\u8c61\u4e0e\u5185\u7f6e\u7c7b\u578b\u5bf9\u8c61\u4e00\u6837\uff0c\u652f\u6301\u5e38\u89c1\u7684\u64cd\u4f5c\u7b26\uff08\u5982 <code>+<\/code>\u3001<code>-<\/code> \u7b49\uff09\u548c\u51fd\u6570\u3002\u91cd\u8f7d\u8fd0\u7b97\u7b26\u548c\u51fd\u6570\u662f C++ \u9762\u5411\u5bf9\u8c61\u7f16\u7a0b\u7684\u4e00\u90e8\u5206\uff0c\u53ef\u4ee5\u4f7f\u5f97\u4ee3\u7801\u66f4\u52a0\u7b80\u6d01\u548c\u6613\u4e8e\u7406\u89e3\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>1. \u8fd0\u7b97\u7b26\u91cd\u8f7d\uff08Operator Overloading\uff09<\/strong><\/h2>\n\n\n\n<p>\u8fd0\u7b97\u7b26\u91cd\u8f7d\u662f\u6307\u4e3a\u7528\u6237\u81ea\u5b9a\u4e49\u7c7b\u578b\u91cd\u65b0\u5b9a\u4e49\u8fd0\u7b97\u7b26\u7684\u884c\u4e3a\uff0c\u4f7f\u5f97\u8fd0\u7b97\u7b26\u53ef\u4ee5\u4f5c\u7528\u4e8e\u8fd9\u4e9b\u7c7b\u578b\u7684\u5bf9\u8c61\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>1.1 \u8fd0\u7b97\u7b26\u91cd\u8f7d\u7684\u8bed\u6cd5<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>return_type operator\u7b26\u53f7(\u53c2\u6570\u5217\u8868) {\n    \/\/ \u91cd\u8f7d\u8fd0\u7b97\u7b26\u7684\u5b9e\u73b0\n}<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>return_type<\/code>\uff1a\u8fd0\u7b97\u7b26\u91cd\u8f7d\u540e\u7684\u8fd4\u56de\u7c7b\u578b\u3002<\/li>\n\n\n\n<li><code>operator\u7b26\u53f7<\/code>\uff1a\u8981\u91cd\u8f7d\u7684\u8fd0\u7b97\u7b26\uff0c\u5982 <code>+<\/code>\u3001<code>-<\/code> \u7b49\u3002<\/li>\n\n\n\n<li><code>\u53c2\u6570\u5217\u8868<\/code>\uff1a\u8be5\u8fd0\u7b97\u7b26\u9700\u8981\u7684\u53c2\u6570\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>1.2 \u793a\u4f8b\uff1a\u91cd\u8f7d <code>+<\/code> \u8fd0\u7b97\u7b26<\/strong><\/h3>\n\n\n\n<p>\u5047\u8bbe\u6211\u4eec\u6709\u4e00\u4e2a\u8868\u793a\u4e8c\u7ef4\u5750\u6807\u7684\u7c7b <code>Point<\/code>\uff0c\u6211\u4eec\u53ef\u4ee5\u91cd\u8f7d <code>+<\/code> \u8fd0\u7b97\u7b26\u6765\u5b9e\u73b0\u4e24\u4e2a <code>Point<\/code> \u5bf9\u8c61\u7684\u5750\u6807\u76f8\u52a0\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#include &lt;iostream&gt;\nusing namespace std;\n\nclass Point {\nprivate:\n    int x, y;\npublic:\n    Point(int x = 0, int y = 0) : x(x), y(y) {}\n\n    \/\/ \u91cd\u8f7d + \u8fd0\u7b97\u7b26\n    Point operator+(const Point&amp; other) {\n        return Point(x + other.x, y + other.y);\n    }\n\n    void display() const {\n        cout &lt;&lt; \"(\" &lt;&lt; x &lt;&lt; \", \" &lt;&lt; y &lt;&lt; \")\" &lt;&lt; endl;\n    }\n};\n\nint main() {\n    Point p1(1, 2), p2(3, 4);\n    Point p3 = p1 + p2;  \/\/ \u4f7f\u7528\u91cd\u8f7d\u7684 + \u8fd0\u7b97\u7b26\n    p3.display();  \/\/ \u8f93\u51fa (4, 6)\n    return 0;\n}<\/code><\/pre>\n\n\n\n<p><strong>\u8f93\u51fa\uff1a<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>(4, 6)<\/code><\/pre>\n\n\n\n<p>\u5728\u4e0a\u9762\u7684\u4f8b\u5b50\u4e2d\uff0c<code>operator+<\/code> \u51fd\u6570\u5b9e\u73b0\u4e86 <code>+<\/code> \u8fd0\u7b97\u7b26\u7684\u91cd\u8f7d\uff0c\u4f7f\u5f97\u6211\u4eec\u53ef\u4ee5\u5bf9 <code>Point<\/code> \u7c7b\u578b\u7684\u5bf9\u8c61\u4f7f\u7528 <code>+<\/code> \u8fd0\u7b97\u7b26\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>1.3 \u5e38\u89c1\u7684\u91cd\u8f7d\u8fd0\u7b97\u7b26<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u7b97\u672f\u8fd0\u7b97\u7b26<\/strong>\uff1a<code>+<\/code>\u3001<code>-<\/code>\u3001<code>*<\/code>\u3001<code>\/<\/code>\u3001<code>%<\/code><\/li>\n\n\n\n<li><strong>\u6bd4\u8f83\u8fd0\u7b97\u7b26<\/strong>\uff1a<code>==<\/code>\u3001<code>!=<\/code>\u3001<code>&lt;<\/code>\u3001<code>><\/code>\u3001<code>&lt;=<\/code>\u3001<code>>=<\/code><\/li>\n\n\n\n<li><strong>\u8d4b\u503c\u8fd0\u7b97\u7b26<\/strong>\uff1a<code>=<\/code>\uff08\u901a\u5e38\u9700\u8981\u8fd4\u56de <code>*this<\/code>\uff09<\/li>\n\n\n\n<li><strong>\u6d41\u8fd0\u7b97\u7b26<\/strong>\uff1a<code>&lt;&lt;<\/code>\uff08\u8f93\u51fa\uff09\u3001<code>>><\/code>\uff08\u8f93\u5165\uff09<\/li>\n\n\n\n<li><strong>\u81ea\u589e\u81ea\u51cf\u8fd0\u7b97\u7b26<\/strong>\uff1a<code>++<\/code>\u3001<code>--<\/code><\/li>\n\n\n\n<li><strong>\u6570\u7ec4\u4e0b\u6807\u8fd0\u7b97\u7b26<\/strong>\uff1a<code>[]<\/code><\/li>\n\n\n\n<li><strong>\u62ec\u53f7\u8fd0\u7b97\u7b26<\/strong>\uff1a<code>()<\/code><\/li>\n\n\n\n<li><strong>\u6307\u9488\u8bbf\u95ee\u8fd0\u7b97\u7b26<\/strong>\uff1a<code>-><\/code><\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>1.4 \u91cd\u8f7d\u8fd0\u7b97\u7b26\u6ce8\u610f\u4e8b\u9879<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u8fd4\u56de\u7c7b\u578b<\/strong>\uff1a\u901a\u5e38\u91cd\u8f7d\u7684\u8fd0\u7b97\u7b26\u8fd4\u56de\u7684\u662f\u5bf9\u8c61\u6216\u5f15\u7528\uff0c\u5c24\u5176\u662f\u8d4b\u503c\u8fd0\u7b97\u7b26\u3002<\/li>\n\n\n\n<li><strong>\u91cd\u8f7d\u65f6\u7684\u4f18\u5148\u7ea7<\/strong>\uff1a\u91cd\u8f7d\u8fd0\u7b97\u7b26\u4e0d\u4f1a\u6539\u53d8\u5176\u4f18\u5148\u7ea7\u3002<\/li>\n\n\n\n<li><strong>\u4e0d\u80fd\u91cd\u8f7d<\/strong>\uff1a\u67d0\u4e9b\u8fd0\u7b97\u7b26\u4e0d\u80fd\u88ab\u91cd\u8f7d\uff0c\u5982 <code>::<\/code>\u3001<code>sizeof<\/code>\u3001<code>typeid<\/code> \u7b49\u3002<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>2. \u51fd\u6570\u91cd\u8f7d\uff08Function Overloading\uff09<\/strong><\/h2>\n\n\n\n<p>\u51fd\u6570\u91cd\u8f7d\u662f\u6307\u5728\u540c\u4e00\u4e2a\u4f5c\u7528\u57df\u4e2d\uff0c\u5b9a\u4e49\u591a\u4e2a\u540c\u540d\u51fd\u6570\uff0c\u4f46\u5b83\u4eec\u7684\u53c2\u6570\u5217\u8868\u4e0d\u540c\u3002\u51fd\u6570\u7684\u91cd\u8f7d\u662f\u901a\u8fc7\u51fd\u6570\u7684\u53c2\u6570\u4e2a\u6570\u3001\u7c7b\u578b\u3001\u987a\u5e8f\u6765\u533a\u5206\u7684\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>2.1 \u51fd\u6570\u91cd\u8f7d\u7684\u8bed\u6cd5<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>return_type function_name(\u53c2\u6570\u5217\u8868) {\n    \/\/ \u51fd\u6570\u5b9e\u73b0\n}<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>2.2 \u793a\u4f8b\uff1a\u91cd\u8f7d\u51fd\u6570<\/strong><\/h3>\n\n\n\n<p>\u6211\u4eec\u53ef\u4ee5\u4e3a\u4e00\u4e2a\u7c7b\u91cd\u8f7d\u540c\u540d\u7684\u51fd\u6570\uff0c\u5b9e\u73b0\u4e0d\u540c\u53c2\u6570\u7684\u529f\u80fd\u3002\u4f8b\u5982\uff0c\u91cd\u8f7d <code>set<\/code> \u51fd\u6570\u6765\u8bbe\u7f6e\u6574\u6570\u548c\u6d6e\u70b9\u6570\u7684\u503c\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#include &lt;iostream&gt;\nusing namespace std;\n\nclass Example {\nprivate:\n    int intValue;\n    float floatValue;\n\npublic:\n    \/\/ \u91cd\u8f7d set \u51fd\u6570\n    void set(int value) {\n        intValue = value;\n    }\n\n    void set(float value) {\n        floatValue = value;\n    }\n\n    void display() const {\n        cout &lt;&lt; \"Integer: \" &lt;&lt; intValue &lt;&lt; \", Float: \" &lt;&lt; floatValue &lt;&lt; endl;\n    }\n};\n\nint main() {\n    Example ex;\n    ex.set(10);      \/\/ \u8c03\u7528 set(int)\n    ex.set(20.5f);   \/\/ \u8c03\u7528 set(float)\n    ex.display();\n    return 0;\n}<\/code><\/pre>\n\n\n\n<p><strong>\u8f93\u51fa\uff1a<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Integer: 10, Float: 20.5<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>2.3 \u91cd\u8f7d\u89c4\u5219<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u53c2\u6570\u4e2a\u6570\u4e0d\u540c<\/strong>\uff1a\u53ef\u4ee5\u901a\u8fc7\u53c2\u6570\u4e2a\u6570\u6765\u533a\u5206\u91cd\u8f7d\u7684\u51fd\u6570\u3002<\/li>\n\n\n\n<li><strong>\u53c2\u6570\u7c7b\u578b\u4e0d\u540c<\/strong>\uff1a\u5982\u679c\u4e24\u4e2a\u51fd\u6570\u7684\u53c2\u6570\u7c7b\u578b\u4e0d\u540c\uff0c\u4e5f\u53ef\u4ee5\u91cd\u8f7d\u3002<\/li>\n\n\n\n<li><strong>\u53c2\u6570\u987a\u5e8f\u4e0d\u540c<\/strong>\uff1a\u5f53\u51fd\u6570\u7684\u53c2\u6570\u987a\u5e8f\u4e0d\u540c\uff0c\u4e5f\u53ef\u4ee5\u8fdb\u884c\u91cd\u8f7d\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>2.4 \u51fd\u6570\u91cd\u8f7d\u7684\u6ce8\u610f\u4e8b\u9879<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u8fd4\u56de\u7c7b\u578b\u4e0d\u533a\u5206<\/strong>\uff1a\u91cd\u8f7d\u65f6\u4ec5\u51ed\u51fd\u6570\u7684\u53c2\u6570\u5217\u8868\u6765\u533a\u5206\uff0c\u4e0d\u80fd\u5355\u7eaf\u901a\u8fc7\u8fd4\u56de\u7c7b\u578b\u8fdb\u884c\u533a\u5206\u3002<\/li>\n\n\n\n<li><strong>\u4e0e\u9ed8\u8ba4\u53c2\u6570\u642d\u914d\u65f6\u7684\u6ce8\u610f<\/strong>\uff1a\u4f7f\u7528\u9ed8\u8ba4\u53c2\u6570\u65f6\uff0c\u53ef\u80fd\u4f1a\u9020\u6210\u91cd\u8f7d\u6a21\u7cca\u3002\u8981\u5c0f\u5fc3\u91cd\u8f7d\u7684\u51b2\u7a81\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>2.5 \u793a\u4f8b\uff1a\u53c2\u6570\u987a\u5e8f\u4e0d\u540c\u7684\u91cd\u8f7d<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>#include &lt;iostream&gt;\nusing namespace std;\n\nclass Print {\npublic:\n    \/\/ \u6253\u5370\u6574\u6570\n    void show(int a, float b) {\n        cout &lt;&lt; \"Integer: \" &lt;&lt; a &lt;&lt; \", Float: \" &lt;&lt; b &lt;&lt; endl;\n    }\n\n    \/\/ \u6253\u5370\u6d6e\u70b9\u6570\u548c\u6574\u6570\n    void show(float b, int a) {\n        cout &lt;&lt; \"Float: \" &lt;&lt; b &lt;&lt; \", Integer: \" &lt;&lt; a &lt;&lt; endl;\n    }\n};\n\nint main() {\n    Print print;\n    print.show(10, 20.5f);  \/\/ \u8c03\u7528\u7b2c\u4e00\u4e2a\u91cd\u8f7d\n    print.show(20.5f, 10);   \/\/ \u8c03\u7528\u7b2c\u4e8c\u4e2a\u91cd\u8f7d\n    return 0;\n}<\/code><\/pre>\n\n\n\n<p><strong>\u8f93\u51fa\uff1a<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Integer: 10, Float: 20.5\nFloat: 20.5, Integer: 10<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>2.6 \u51fd\u6570\u91cd\u8f7d\u7684\u5e94\u7528\u573a\u666f<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u7edf\u4e00\u63a5\u53e3<\/strong>\uff1a\u5f53\u9700\u8981\u4e3a\u4e0d\u540c\u7c7b\u578b\u7684\u53c2\u6570\u63d0\u4f9b\u7c7b\u4f3c\u7684\u5904\u7406\u65f6\uff0c\u53ef\u4ee5\u4f7f\u7528\u51fd\u6570\u91cd\u8f7d\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u91cd\u8f7d <code>set<\/code> \u51fd\u6570\u6765\u63a5\u53d7\u4e0d\u540c\u7c7b\u578b\u7684\u6570\u636e\uff08\u5982\u6574\u6570\u3001\u6d6e\u70b9\u6570\u3001\u5b57\u7b26\u4e32\u7b49\uff09\u3002<\/li>\n\n\n\n<li><strong>\u591a\u6001\u5b9e\u73b0\u7684\u4e00\u90e8\u5206<\/strong>\uff1a\u51fd\u6570\u91cd\u8f7d\u662f\u5b9e\u73b0\u591a\u6001\u7684\u4e00\u90e8\u5206\uff0c\u901a\u8fc7\u540c\u540d\u51fd\u6570\u7684\u4e0d\u540c\u5b9e\u73b0\uff0c\u8fbe\u5230\u6839\u636e\u53c2\u6570\u7c7b\u578b\u7684\u4e0d\u540c\u6267\u884c\u4e0d\u540c\u903b\u8f91\u7684\u6548\u679c\u3002<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>3. \u8fd0\u7b97\u7b26\u91cd\u8f7d\u4e0e\u51fd\u6570\u91cd\u8f7d\u7684\u533a\u522b<\/strong><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u8fd0\u7b97\u7b26\u91cd\u8f7d<\/strong>\uff1a\u5141\u8bb8\u81ea\u5b9a\u4e49\u7684\u7c7b\u578b\u4f7f\u7528\u5185\u7f6e\u8fd0\u7b97\u7b26\uff08\u5982 <code>+<\/code>\u3001<code>-<\/code>\uff09\u8fdb\u884c\u64cd\u4f5c\u3002<\/li>\n\n\n\n<li><strong>\u51fd\u6570\u91cd\u8f7d<\/strong>\uff1a\u5141\u8bb8\u540c\u4e00\u4e2a\u51fd\u6570\u540d\u6839\u636e\u4e0d\u540c\u7684\u53c2\u6570\u7c7b\u578b\u6216\u4e2a\u6570\u8fdb\u884c\u91cd\u8f7d\u3002<\/li>\n<\/ul>\n\n\n\n<p>\u603b\u7ed3\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u8fd0\u7b97\u7b26\u91cd\u8f7d\u662f\u8ba9\u7528\u6237\u5b9a\u4e49\u7684\u7c7b\u578b\u652f\u6301\u8fd0\u7b97\u7b26\u7684\u884c\u4e3a\u3002<\/li>\n\n\n\n<li>\u51fd\u6570\u91cd\u8f7d\u662f\u901a\u8fc7\u53c2\u6570\u4e0d\u540c\u6765\u5b9a\u4e49\u591a\u4e2a\u540c\u540d\u7684\u51fd\u6570\u3002<\/li>\n<\/ul>\n\n\n\n<p>\u8fd0\u7b97\u7b26\u548c\u51fd\u6570\u7684\u91cd\u8f7d\u4f7f\u5f97 C++ \u7f16\u7a0b\u66f4\u5177\u7075\u6d3b\u6027\u548c\u8868\u8fbe\u529b\uff0c\u53ef\u4ee5\u8ba9\u81ea\u5b9a\u4e49\u7c7b\u578b\u50cf\u5185\u7f6e\u7c7b\u578b\u4e00\u6837\u65b9\u4fbf\u5730\u4f7f\u7528\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>C++ \u5141\u8bb8\u4f60\u4e3a\u7528\u6237\u81ea\u5b9a\u4e49\u7684\u7c7b\u578b\uff08\u7c7b\uff09\u91cd\u8f7d\u8fd0\u7b97\u7b26\u548c\u51fd\u6570\u3002\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\uff0c\u53ef\u4ee5\u4f7f\u5bf9\u8c61\u4e0e\u5185\u7f6e\u7c7b\u578b\u5bf9\u8c61\u4e00\u6837\uff0c\u652f\u6301\u5e38\u89c1\u7684 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":3302,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[81],"tags":[],"class_list":["post-3301","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-c-"],"_links":{"self":[{"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/posts\/3301","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/comments?post=3301"}],"version-history":[{"count":1,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/posts\/3301\/revisions"}],"predecessor-version":[{"id":3303,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/posts\/3301\/revisions\/3303"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/media\/3302"}],"wp:attachment":[{"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/media?parent=3301"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/categories?post=3301"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/tags?post=3301"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}