{"id":760,"date":"2024-12-08T10:35:55","date_gmt":"2024-12-08T02:35:55","guid":{"rendered":"http:\/\/www.chan.ink\/?p=760"},"modified":"2024-12-08T10:35:58","modified_gmt":"2024-12-08T02:35:58","slug":"%e3%80%90python%e3%80%91%e8%bf%ad%e4%bb%a3%e5%99%a8%ef%bc%8c%e9%80%89%e6%8b%a9%e5%99%a8","status":"publish","type":"post","link":"http:\/\/www.chan.ink\/index.php\/2024\/12\/08\/%e3%80%90python%e3%80%91%e8%bf%ad%e4%bb%a3%e5%99%a8%ef%bc%8c%e9%80%89%e6%8b%a9%e5%99%a8\/","title":{"rendered":"\u3010Python\u3011\u8fed\u4ee3\u5668\uff0c\u9009\u62e9\u5668"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">class IT(object):<br>def __init__(self):<br>self.counter = 0<br><br><br>def __iter__(self):<br>return self<br><br><br>def __next__(self):<br>self.counter += 1<br>if self.counter == 3:<br>raise StopIteration()<app-translate-content class=\"eusoft-translate-container-span-en ng-star-inserted\" _nghost-ng-c341168634=\"\"><span class=\"eusoft-eudic-chrome-extension-translate-content\" _ngcontent-ng-c341168634=\"\"><span class=\"eusoft-eudic-chrome-extension-translate-white-space ng-star-inserted\" _ngcontent-ng-c341168634=\"\">\u00a0<\/span><\/span><\/app-translate-content><br>return self.counter<app-translate-content class=\"eusoft-translate-container-span-en ng-star-inserted\" _nghost-ng-c341168634=\"\"><span class=\"eusoft-eudic-chrome-extension-translate-content\" _ngcontent-ng-c341168634=\"\"><\/span><\/app-translate-content><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">obj1 = IT()<app-translate-content class=\"eusoft-translate-container-span-en ng-star-inserted\" _nghost-ng-c341168634=\"\"><span class=\"eusoft-eudic-chrome-extension-translate-content\" _ngcontent-ng-c341168634=\"\"><span _ngcontent-ng-c341168634=\"\" class=\"eusoft-eudic-chrome-extension-translate-white-space ng-star-inserted\">\u00a0<\/span><span class=\"eusoft-eudic-chrome-extension-translate-item eusoft-eudic-chrome-extension-translate-inner-content ng-star-inserted\" _ngcontent-ng-c341168634=\"\" style=\" text-decoration-color: #202124 !important;\"><span _ngcontent-ng-c341168634=\"\">obj1 = IT\uff08\uff09<\/span><\/span><app-translate-config-button _ngcontent-ng-c341168634=\"\" class=\"ng-star-inserted\"><\/app-translate-config-button><\/span><\/app-translate-content><br><br>obj2 = IT()<br>for item in obj2: #\u9996\u5148\u4f1a\u6267\u884c\u8fed\u4ee3\u5668\u5bf9\u8c61\u7684__iter__\u65b9\u6cd5\u5e76\u8fd4\u56de\u503c\uff0c\u7136\u540e\u4e00\u76f4\u53cd\u590d\u6267\u884cnext\u5bf9\u8c61<app-translate-content _nghost-ng-c341168634=\"\" class=\"eusoft-translate-container-span-en ng-star-inserted\"><span _ngcontent-ng-c341168634=\"\" class=\"eusoft-eudic-chrome-extension-translate-content\"><\/span><\/app-translate-content><br>print(item)<app-translate-content class=\"eusoft-translate-container-span-en ng-star-inserted\" _nghost-ng-c341168634=\"\"><span class=\"eusoft-eudic-chrome-extension-translate-content\" _ngcontent-ng-c341168634=\"\"><span _ngcontent-ng-c341168634=\"\" class=\"eusoft-eudic-chrome-extension-translate-white-space ng-star-inserted\">\u00a0<\/span><\/span><\/app-translate-content><br><br><br>#\u8fed\u4ee3\u5668\u5bf9\u8c61\u652f\u6301\u901a\u8fc7next\u53d6\u503c\uff0c\u5982\u679c\u53d6\u503c\u7ed3\u675f\u5219\u81ea\u52a8\u629b\u51faStopIteration<app-translate-content _nghost-ng-c341168634=\"\" class=\"eusoft-translate-container-span-en ng-star-inserted\"><span _ngcontent-ng-c341168634=\"\" class=\"eusoft-eudic-chrome-extension-translate-content\"><\/span><\/app-translate-content><br>#for \u5faa\u73af\u5185\u90e8\u5728\u5faa\u73af\u65f6\uff0c\u5148\u6267\u884c__iter__\u65b9\u6cd5\uff0c\u83b7\u53d6\u4e00\u4e2a\u8fed\u4ee3\u5668\u5bf9\u8c61\uff0c\u7136\u540e\u4e0d\u65ad\u6267\u884c\u7684next\u53d6\u503c\uff08\u6709\u5f02\u5e38StopIteration\u5219\u7ec8\u6b62\u5faa\u73af\uff09<app-translate-content _nghost-ng-c341168634=\"\" class=\"eusoft-translate-container-span-en ng-star-inserted\"><span _ngcontent-ng-c341168634=\"\" class=\"eusoft-eudic-chrome-extension-translate-content\"><\/span><\/app-translate-content><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6211\u95ee<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6211\u8fd8\u662f\u4e0d\u592a\u4e86\u89e3\uff0c\u6211\u7684\u521d\u6b65\u7406\u89e3\uff0c\u53ef\u80fd\u53d7\u9650\u4e8e\u4e4b\u524d\u7684\u904d\u5386\u5217\u8868\u548c\u5b57\u5178\u3002<br>\u6211\u611f\u89c9\uff0c\u904d\u5386\u5b9e\u4f8b\uff0c\u5c31\u662f\u904d\u5386\u4ed6\u7684\u53d8\u91cf\u548c\u65b9\u6cd5\u3002\u4f46\u662f\u4f9d\u6b21\u904d\u5386\u5b8c\u4e86\u5c31\u4f1a\u7ed3\u675f\uff0c\u4e3a\u4ec0\u4e48\u4f1a\u53cd\u590d\u6267\u884cnext\u5462&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">GPT\u56de\u7b54<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u7406\u89e3\u4f60\u73b0\u5728\u7684\u56f0\u60d1\u3002\u4f60\u8bf4\u7684\u904d\u5386\u5217\u8868\u548c\u5b57\u5178\uff0c\u5b9e\u9645\u4e0a\u662f\u5bf9\u5bb9\u5668\u6570\u636e\u7c7b\u578b\uff08\u5982\u5217\u8868\u3001\u5b57\u5178\u7b49\uff09\u7684\u904d\u5386\uff0c\u800c\u5f53\u4f60\u904d\u5386\u4e00\u4e2a\u5bf9\u8c61\u5b9e\u4f8b\u65f6\uff0c\u60c5\u51b5\u6709\u6240\u4e0d\u540c\u3002\u4e3a\u4e86\u8ba9\u4f60\u66f4\u597d\u5730\u7406\u89e3\uff0c\u6211\u4eec\u53ef\u4ee5\u4ece\u57fa\u7840\u5f00\u59cb\u8bb2\u89e3\u201c\u4e3a\u4ec0\u4e48\u8981\u53cd\u590d\u6267\u884c <code>__next__<\/code>\u201d\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1. <strong>\u5217\u8868\u548c\u5b57\u5178\u7684\u904d\u5386\u662f\u76f4\u63a5\u8bbf\u95ee\u5143\u7d20<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u904d\u5386\u5217\u8868\u3001\u5b57\u5178\u7b49\u5185\u7f6e\u5bb9\u5668\u65f6\uff0cPython \u4f1a\u76f4\u63a5\u4ece\u5bb9\u5668\u4e2d\u83b7\u53d6\u6bcf\u4e2a\u5143\u7d20\uff0c\u9010\u4e00\u5904\u7406\u3002\u4f8b\u5982\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">python\u590d\u5236\u4ee3\u7801<code># \u904d\u5386\u4e00\u4e2a\u5217\u8868\nmy_list = [1, 2, 3]\nfor item in my_list:\n    print(item)\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0cPython \u4f1a\u76f4\u63a5\u4ece <code>my_list<\/code> \u4e2d\u83b7\u53d6\u6bcf\u4e00\u4e2a\u5143\u7d20\uff0c\u4f9d\u6b21\u6253\u5370 <code>1<\/code>\u3001<code>2<\/code>\u3001<code>3<\/code>\u3002\u8fd9\u4e9b\u5143\u7d20\u662f\u5bb9\u5668\u4e2d\u7684\u56fa\u5b9a\u6570\u636e\uff0c\u904d\u5386\u7ed3\u675f\u5c31\u505c\u6b62\u4e86\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2. <strong>\u5b9e\u4f8b\u5316\u5bf9\u8c61\u4e0e\u5bb9\u5668\u4e0d\u540c<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u5f53\u4f60\u904d\u5386\u4e00\u4e2a\u7c7b\u7684\u5b9e\u4f8b\u65f6\uff0c\u5e76\u4e0d\u662f\u50cf\u5217\u8868\u90a3\u6837\u76f4\u63a5\u8bbf\u95ee\u6570\u636e\uff0c\u800c\u662f\u8981\u901a\u8fc7\u5bf9\u8c61\u7684\u65b9\u6cd5\u6765\u63a7\u5236\u904d\u5386\u7684\u884c\u4e3a\u3002\u5bf9\u4e8e\u4e00\u4e2a\u81ea\u5b9a\u4e49\u7c7b\uff0c\u6211\u4eec\u901a\u5e38\u4f1a\u901a\u8fc7\u5b9e\u73b0\u8fed\u4ee3\u5668\u534f\u8bae\uff08\u5373 <code>__iter__()<\/code> \u548c <code>__next__()<\/code>\uff09\u6765\u5b9a\u4e49\u201c\u5982\u4f55\u83b7\u53d6\u4e0b\u4e00\u4e2a\u5143\u7d20\u201d\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">3. <strong>\u8fed\u4ee3\u5668\u662f\u201c\u6309\u9700\u751f\u6210\u201d\u5143\u7d20\u7684\u673a\u5236<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u5728\u6ca1\u6709\u8fed\u4ee3\u5668\u534f\u8bae\u65f6\uff0c\u7a0b\u5e8f\u5f80\u5f80\u662f\u4e00\u6b21\u6027\u83b7\u53d6\u6240\u6709\u7684\u6570\u636e\uff08\u4f8b\u5982\u901a\u8fc7\u7d22\u5f15\u6765\u904d\u5386\u5217\u8868\uff09\u3002\u4f46\u662f\uff0c\u8fed\u4ee3\u5668\u7684\u4e00\u4e2a\u91cd\u8981\u7279\u6027\u662f\uff0c\u5b83\u662f <strong>\u201c\u6309\u9700\u751f\u6210\u201d<\/strong> \u5143\u7d20\u7684\uff0c\u4e5f\u5c31\u662f\u8bf4\uff0c<code>__next__()<\/code> \u65b9\u6cd5\u6bcf\u88ab\u8c03\u7528\u4e00\u6b21\uff0c\u8fd4\u56de\u4e0b\u4e00\u4e2a\u5143\u7d20\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5047\u8bbe\u6709\u4e00\u4e2a\u5bf9\u8c61 <code>obj<\/code>\uff0c\u5b83\u5b9e\u73b0\u4e86\u8fed\u4ee3\u5668\u534f\u8bae\u3002\u6211\u4eec\u6bcf\u8c03\u7528\u4e00\u6b21 <code>next(obj)<\/code>\uff0c\u5c31\u83b7\u53d6\u5230\u4e0b\u4e00\u4e2a\u5143\u7d20\uff0c\u800c\u8fd9\u4e2a\u5143\u7d20\u5e76\u4e0d\u662f\u63d0\u524d\u751f\u6210\u597d\u7684\uff0c\u800c\u662f\u901a\u8fc7 <code>__next__()<\/code> \u52a8\u6001\u8ba1\u7b97\u51fa\u6765\u7684\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">4. <strong><code>__next__<\/code> \u662f\u901a\u8fc7\u8fed\u4ee3\u5668\u534f\u8bae\u6765\u63a7\u5236\u904d\u5386\u7684<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u5728\u81ea\u5b9a\u4e49\u7c7b\u4e2d\uff0c<code>__next__()<\/code> \u65b9\u6cd5\u7684\u4f5c\u7528\u662f\u63a7\u5236\u6bcf\u6b21 <code>next()<\/code> \u8c03\u7528\u65f6\u8fd4\u56de\u7684\u5185\u5bb9\u3002\u5728 <code>__next__()<\/code> \u65b9\u6cd5\u4e2d\uff0c\u901a\u5e38\u4f1a\u6709\u67d0\u79cd\u6761\u4ef6\u5224\u65ad\u6765\u51b3\u5b9a\u4f55\u65f6\u505c\u6b62\u8fed\u4ee3\uff08\u4f8b\u5982\u901a\u8fc7 <code>StopIteration<\/code> \u5f02\u5e38\u6765\u7ec8\u6b62\u5faa\u73af\uff09\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5047\u8bbe\u6709\u8fd9\u6837\u4e00\u4e2a\u7c7b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">python\u590d\u5236\u4ee3\u7801<code>class Counter:\n    def __init__(self):\n        self.counter = 0\n\n    def __iter__(self):\n        return self  # \u8fed\u4ee3\u5668\u662f\u81ea\u8eab\n\n    def __next__(self):\n        self.counter += 1\n        if self.counter &gt; 3:\n            raise StopIteration  # \u8d85\u8fc73\u6b21\u5c31\u505c\u6b62\n        return self.counter\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">5. <strong>\u53cd\u590d\u6267\u884c <code>next<\/code> \u7684\u539f\u56e0\uff1a<code>__next__()<\/code> \u662f\u83b7\u53d6\u201c\u4e0b\u4e00\u4e2a\u201d\u5143\u7d20<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u5bf9\u4e8e\u4e0a\u9762\u7684 <code>Counter<\/code> \u7c7b\uff0c\u5f53\u4f60\u521b\u5efa\u5b9e\u4f8b\u5e76\u4f7f\u7528 <code>for<\/code> \u5faa\u73af\u65f6\uff0c\u5b9e\u9645\u53d1\u751f\u7684\u662f\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">python\u590d\u5236\u4ee3\u7801<code>counter = Counter()\nfor number in counter:\n    print(number)\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u5728 <code>for<\/code> \u5faa\u73af\u4e2d\uff0cPython \u4f1a\u5728\u80cc\u540e\u8c03\u7528 <code>counter.__iter__()<\/code> \u83b7\u53d6\u4e00\u4e2a\u8fed\u4ee3\u5668\uff08\u5373 <code>counter<\/code> \u672c\u8eab\uff09\u3002\u7136\u540e\u5b83\u4f1a\u53cd\u590d\u8c03\u7528 <code>counter.__next__()<\/code> \u6765\u83b7\u53d6\u6bcf\u4e2a\u5143\u7d20\uff0c\u76f4\u5230 <code>__next__()<\/code> \u629b\u51fa <code>StopIteration<\/code> \u5f02\u5e38\u4e3a\u6b62\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u7b2c\u4e00\u6b21\u6267\u884c <code>next(counter)<\/code>\uff1a<\/strong> \u8c03\u7528 <code>__next__()<\/code>\uff0c\u8fd4\u56de <code>1<\/code>\u3002<\/li>\n\n\n\n<li><strong>\u7b2c\u4e8c\u6b21\u6267\u884c <code>next(counter)<\/code>\uff1a<\/strong> \u8c03\u7528 <code>__next__()<\/code>\uff0c\u8fd4\u56de <code>2<\/code>\u3002<\/li>\n\n\n\n<li><strong>\u7b2c\u4e09\u6b21\u6267\u884c <code>next(counter)<\/code>\uff1a<\/strong> \u8c03\u7528 <code>__next__()<\/code>\uff0c\u8fd4\u56de <code>3<\/code>\u3002<\/li>\n\n\n\n<li><strong>\u7b2c\u56db\u6b21\u6267\u884c <code>next(counter)<\/code>\uff1a<\/strong> \u8c03\u7528 <code>__next__()<\/code>\uff0c\u629b\u51fa <code>StopIteration<\/code>\uff0c\u7ed3\u675f\u8fed\u4ee3\u3002<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">6. <strong>\u8fed\u4ee3\u5668\u7684\u201c\u72b6\u6001\u201d<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u8fed\u4ee3\u5668\u4e0d\u4ec5\u4ec5\u662f\u8fd4\u56de\u4e0b\u4e00\u4e2a\u5143\u7d20\uff0c\u5b83\u7684\u72b6\u6001\u662f\u88ab\u7ef4\u62a4\u7684\u3002\u901a\u8fc7 <code>__iter__()<\/code> \u548c <code>__next__()<\/code>\uff0cPython \u63a7\u5236\u4e86\u201c\u4e0b\u4e00\u6b21\u201d\u8981\u83b7\u53d6\u54ea\u4e2a\u5143\u7d20\uff0c\u800c\u6bcf\u4e00\u6b21\u8c03\u7528 <code>next()<\/code> \u90fd\u662f\u201c\u524d\u8fdb\u201d\u4e00\u6b65\u3002\u6240\u4ee5\uff0c<code>next()<\/code> \u4f1a\u53cd\u590d\u6267\u884c\uff0c\u76f4\u5230\u6ca1\u6709\u66f4\u591a\u5143\u7d20\u53ef\u4ee5\u63d0\u4f9b\uff0c\u624d\u4f1a\u505c\u6b62\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">7. <strong>\u7c7b\u4e0e\u6570\u636e\u5bb9\u5668\u7684\u533a\u522b<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u5217\u8868\u3001\u5b57\u5178\u8fd9\u4e9b\u6570\u636e\u5bb9\u5668\u662f\u9759\u6001\u7684\uff0c\u4e00\u65e6\u521b\u5efa\u597d\uff0c\u5b83\u4eec\u7684\u5143\u7d20\u5c31\u56fa\u5b9a\u4e86\uff1b\u4f46\u662f\uff0c\u5f53\u4f60\u904d\u5386\u4e00\u4e2a\u7c7b\u7684\u5b9e\u4f8b\u65f6\uff0c\u5b9e\u9645\u4e0a\u662f\u5728\u6309\u9700\u751f\u6210\u6570\u636e\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u662f\u52a8\u6001\u7684\uff0c\u901a\u8fc7 <code>__next__()<\/code> \u6765\u63a7\u5236\u6bcf\u6b21\u8fd4\u56de\u4e00\u4e2a\u5143\u7d20\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u603b\u7ed3\uff1a<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u5bb9\u5668\u7c7b\u578b\uff08\u5217\u8868\u3001\u5b57\u5178\u7b49\uff09<\/strong>\uff1a\u5143\u7d20\u662f\u4e00\u6b21\u6027\u63d0\u4f9b\u7684\uff0c\u904d\u5386\u65f6\u76f4\u63a5\u8bbf\u95ee\u5143\u7d20\u3002<\/li>\n\n\n\n<li><strong>\u81ea\u5b9a\u4e49\u7c7b\u7684\u8fed\u4ee3\u5668<\/strong>\uff1a\u6570\u636e\u662f\u52a8\u6001\u751f\u6210\u7684\uff0c\u901a\u8fc7 <code>__next__()<\/code> \u63a7\u5236\u6bcf\u6b21\u8fed\u4ee3\u7684\u5185\u5bb9\u3002\u6bcf\u6b21 <code>next()<\/code> \u8c03\u7528\u65f6\uff0c\u90fd\u4f1a\u6267\u884c <code>__next__()<\/code>\uff0c\u76f4\u5230\u6570\u636e\u751f\u6210\u5b8c\u6bd5\u5e76\u629b\u51fa <code>StopIteration<\/code> \u5f02\u5e38\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">\u4e3a\u4ec0\u4e48\u4f1a\u53cd\u590d\u6267\u884c <code>next<\/code>\uff1a<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u53cd\u590d\u6267\u884c <code>next<\/code> \u662f\u56e0\u4e3a\u6bcf\u6b21\u8c03\u7528 <code>next()<\/code> \u90fd\u662f\u83b7\u53d6\u201c\u4e0b\u4e00\u4e2a\u5143\u7d20\u201d\u3002<\/li>\n\n\n\n<li><code>__next__()<\/code> \u4f1a\u63a7\u5236\u4e0b\u4e00\u4e2a\u8fd4\u56de\u7684\u5143\u7d20\uff0c\u76f4\u5230\u8fed\u4ee3\u7ed3\u675f\uff0c\u629b\u51fa <code>StopIteration<\/code> \u4e3a\u6b62\u3002<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u5e0c\u671b\u8fd9\u80fd\u5e2e\u52a9\u4f60\u7406\u89e3\u4e3a\u4ec0\u4e48\u4f1a\u53cd\u590d\u6267\u884c <code>next<\/code>\uff0c\u4ee5\u53ca\u8fed\u4ee3\u5668\u7684\u5de5\u4f5c\u539f\u7406\u3002\u5982\u679c\u4f60\u6709\u66f4\u5177\u4f53\u7684\u95ee\u9898\uff0c\u968f\u65f6\u53ef\u4ee5\u95ee\u6211\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>class IT(object):def __init__(self):self.counter = 0 de [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-760","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/www.chan.ink\/index.php\/wp-json\/wp\/v2\/posts\/760","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.chan.ink\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.chan.ink\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.chan.ink\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.chan.ink\/index.php\/wp-json\/wp\/v2\/comments?post=760"}],"version-history":[{"count":1,"href":"http:\/\/www.chan.ink\/index.php\/wp-json\/wp\/v2\/posts\/760\/revisions"}],"predecessor-version":[{"id":763,"href":"http:\/\/www.chan.ink\/index.php\/wp-json\/wp\/v2\/posts\/760\/revisions\/763"}],"wp:attachment":[{"href":"http:\/\/www.chan.ink\/index.php\/wp-json\/wp\/v2\/media?parent=760"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.chan.ink\/index.php\/wp-json\/wp\/v2\/categories?post=760"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.chan.ink\/index.php\/wp-json\/wp\/v2\/tags?post=760"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}