{"id":1076075,"date":"2025-01-08T11:50:08","date_gmt":"2025-01-08T03:50:08","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1076075.html"},"modified":"2025-01-08T11:50:11","modified_gmt":"2025-01-08T03:50:11","slug":"%e5%a6%82%e4%bd%95%e9%aa%8c%e8%af%81%e9%aa%8c%e8%af%81%e7%a0%81%e6%ad%a3%e7%a1%aepython-2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1076075.html","title":{"rendered":"\u5982\u4f55\u9a8c\u8bc1\u9a8c\u8bc1\u7801\u6b63\u786ePython"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24180827\/6d0617cd-2e7f-4bbe-9135-2500637f7752.webp\" alt=\"\u5982\u4f55\u9a8c\u8bc1\u9a8c\u8bc1\u7801\u6b63\u786ePython\" \/><\/p>\n<p><p> <strong>\u5982\u4f55\u9a8c\u8bc1\u9a8c\u8bc1\u7801\u6b63\u786ePython<\/strong><\/p>\n<\/p>\n<p><p><strong>\u9a8c\u8bc1\u9a8c\u8bc1\u7801\u6b63\u786e\u7684\u65b9\u6cd5\u6709\uff1a\u751f\u6210\u9a8c\u8bc1\u7801\u3001\u7528\u6237\u8f93\u5165\u3001\u9a8c\u8bc1\u7801\u6bd4\u5bf9\u3001\u9519\u8bef\u5904\u7406\u3001\u4f18\u5316\u6027\u80fd\u3002<\/strong> \u5176\u4e2d\uff0c<strong>\u751f\u6210\u9a8c\u8bc1\u7801<\/strong>\u662f\u5173\u952e\u7684\u4e00\u73af\uff0c\u56e0\u4e3a\u5b83\u786e\u4fdd\u4e86\u9a8c\u8bc1\u7801\u7684\u968f\u673a\u6027\u548c\u5b89\u5168\u6027\u3002\u751f\u6210\u9a8c\u8bc1\u7801\u7684\u65b9\u5f0f\u6709\u5f88\u591a\u79cd\uff0c\u4f8b\u5982\u6570\u5b57\u9a8c\u8bc1\u7801\u3001\u5b57\u6bcd\u9a8c\u8bc1\u7801\u3001\u6df7\u5408\u9a8c\u8bc1\u7801\u4ee5\u53ca\u56fe\u5f62\u9a8c\u8bc1\u7801\u3002\u56fe\u5f62\u9a8c\u8bc1\u7801\u662f\u6700\u5e38\u89c1\u7684\u4e00\u79cd\uff0c\u901a\u5e38\u901a\u8fc7\u751f\u6210\u4e00\u5f20\u5305\u542b\u968f\u673a\u5b57\u7b26\u7684\u56fe\u7247\u6765\u9632\u6b62\u6076\u610f\u673a\u5668\u4eba\u81ea\u52a8\u63d0\u4ea4\u8868\u5355\u3002<\/p>\n<\/p>\n<p><p><strong>\u751f\u6210\u56fe\u5f62\u9a8c\u8bc1\u7801\u7684\u5b9e\u73b0\u65b9\u6cd5<\/strong><\/p>\n<\/p>\n<p><p>\u751f\u6210\u56fe\u5f62\u9a8c\u8bc1\u7801\u901a\u5e38\u9700\u8981\u4f7f\u7528Python\u7684\u56fe\u50cf\u5904\u7406\u5e93\uff0c\u5982PIL\uff08Pillow\u5e93\u7684\u524d\u8eab\uff09\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684Python\u793a\u4f8b\uff0c\u7528\u4e8e\u751f\u6210\u56fe\u5f62\u9a8c\u8bc1\u7801\u5e76\u9a8c\u8bc1\u7528\u6237\u8f93\u5165\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from PIL import Image, ImageDraw, ImageFont, ImageFilter<\/p>\n<p>import random<\/p>\n<p>import string<\/p>\n<h2><strong>\u751f\u6210\u968f\u673a\u5b57\u7b26\u4e32<\/strong><\/h2>\n<p>def get_random_string(length=4):<\/p>\n<p>    return &#39;&#39;.join(random.choices(string.ascii_uppercase + string.digits, k=length))<\/p>\n<h2><strong>\u751f\u6210\u9a8c\u8bc1\u7801\u56fe\u7247<\/strong><\/h2>\n<p>def generate_captcha(text):<\/p>\n<p>    width, height = 100, 40<\/p>\n<p>    image = Image.new(&#39;RGB&#39;, (width, height), &#39;white&#39;)<\/p>\n<p>    font = ImageFont.truetype(&#39;arial.ttf&#39;, 36)<\/p>\n<p>    draw = ImageDraw.Draw(image)<\/p>\n<p>    # \u7ed8\u5236\u6587\u5b57<\/p>\n<p>    for i, char in enumerate(text):<\/p>\n<p>        draw.text((10 + i * 20, 5), char, font=font, fill=&#39;black&#39;)<\/p>\n<p>    # \u52a0\u5165\u566a\u70b9<\/p>\n<p>    for _ in range(100):<\/p>\n<p>        draw.point((random.randint(0, width), random.randint(0, height)), fill=&#39;black&#39;)<\/p>\n<p>    image = image.filter(ImageFilter.BLUR)<\/p>\n<p>    return image<\/p>\n<h2><strong>\u4fdd\u5b58\u5e76\u5c55\u793a\u9a8c\u8bc1\u7801\u56fe\u7247<\/strong><\/h2>\n<p>text = get_random_string()<\/p>\n<p>captcha_image = generate_captcha(text)<\/p>\n<p>captcha_image.show()<\/p>\n<h2><strong>\u9a8c\u8bc1\u7528\u6237\u8f93\u5165<\/strong><\/h2>\n<p>user_input = input(&#39;Enter the captcha: &#39;)<\/p>\n<p>if user_input == text:<\/p>\n<p>    print(&#39;Captcha verified successfully!&#39;)<\/p>\n<p>else:<\/p>\n<p>    print(&#39;Captcha verification f<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>led.&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8be5\u4ee3\u7801\u9996\u5148\u751f\u6210\u4e00\u4e2a\u5305\u542b\u968f\u673a\u5b57\u7b26\u7684\u5b57\u7b26\u4e32\uff0c\u7136\u540e\u4f7f\u7528PIL\u5e93\u521b\u5efa\u4e00\u5f20\u5305\u542b\u8fd9\u4e9b\u5b57\u7b26\u7684\u56fe\u50cf\uff0c\u5e76\u52a0\u4e0a\u4e00\u4e9b\u566a\u70b9\u4ee5\u589e\u52a0\u9a8c\u8bc1\u7801\u7684\u96be\u5ea6\u3002\u6700\u540e\uff0c\u5c06\u751f\u6210\u7684\u9a8c\u8bc1\u7801\u56fe\u7247\u5c55\u793a\u7ed9\u7528\u6237\uff0c\u5e76\u901a\u8fc7\u7528\u6237\u8f93\u5165\u6765\u9a8c\u8bc1\u9a8c\u8bc1\u7801\u7684\u6b63\u786e\u6027\u3002<\/p>\n<\/p>\n<p><p><strong>\u7528\u6237\u8f93\u5165\u5904\u7406<\/strong><\/p>\n<\/p>\n<p><p>\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u7528\u6237\u8f93\u5165\u901a\u5e38\u901a\u8fc7HTML\u8868\u5355\u63d0\u4ea4\u5230\u670d\u52a1\u5668\u7aef\u8fdb\u884c\u5904\u7406\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684Flask\u793a\u4f8b\uff0c\u5c55\u793a\u5982\u4f55\u5728Web\u5e94\u7528\u4e2d\u5b9e\u73b0\u9a8c\u8bc1\u7801\u9a8c\u8bc1\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from flask import Flask, render_template, request, session, redirect, url_for<\/p>\n<p>from PIL import Image, ImageDraw, ImageFont, ImageFilter<\/p>\n<p>import random<\/p>\n<p>import string<\/p>\n<p>import io<\/p>\n<p>app = Flask(__name__)<\/p>\n<p>app.secret_key = &#39;your_secret_key&#39;<\/p>\n<h2><strong>\u751f\u6210\u968f\u673a\u5b57\u7b26\u4e32<\/strong><\/h2>\n<p>def get_random_string(length=4):<\/p>\n<p>    return &#39;&#39;.join(random.choices(string.ascii_uppercase + string.digits, k=length))<\/p>\n<h2><strong>\u751f\u6210\u9a8c\u8bc1\u7801\u56fe\u7247<\/strong><\/h2>\n<p>def generate_captcha(text):<\/p>\n<p>    width, height = 100, 40<\/p>\n<p>    image = Image.new(&#39;RGB&#39;, (width, height), &#39;white&#39;)<\/p>\n<p>    font = ImageFont.truetype(&#39;arial.ttf&#39;, 36)<\/p>\n<p>    draw = ImageDraw.Draw(image)<\/p>\n<p>    for i, char in enumerate(text):<\/p>\n<p>        draw.text((10 + i * 20, 5), char, font=font, fill=&#39;black&#39;)<\/p>\n<p>    for _ in range(100):<\/p>\n<p>        draw.point((random.randint(0, width), random.randint(0, height)), fill=&#39;black&#39;)<\/p>\n<p>    image = image.filter(ImageFilter.BLUR)<\/p>\n<p>    return image<\/p>\n<p>@app.route(&#39;\/&#39;)<\/p>\n<p>def index():<\/p>\n<p>    return render_template(&#39;index.html&#39;)<\/p>\n<p>@app.route(&#39;\/captcha&#39;)<\/p>\n<p>def captcha():<\/p>\n<p>    text = get_random_string()<\/p>\n<p>    session[&#39;captcha&#39;] = text<\/p>\n<p>    image = generate_captcha(text)<\/p>\n<p>    buffer = io.BytesIO()<\/p>\n<p>    image.save(buffer, format=&#39;PNG&#39;)<\/p>\n<p>    buffer.seek(0)<\/p>\n<p>    return send_file(buffer, mimetype=&#39;image\/png&#39;)<\/p>\n<p>@app.route(&#39;\/verify&#39;, methods=[&#39;POST&#39;])<\/p>\n<p>def verify():<\/p>\n<p>    user_input = request.form.get(&#39;captcha&#39;)<\/p>\n<p>    if user_input and user_input.upper() == session.get(&#39;captcha&#39;):<\/p>\n<p>        return &#39;Captcha verified successfully!&#39;<\/p>\n<p>    else:<\/p>\n<p>        return &#39;Captcha verification failed.&#39;<\/p>\n<p>if __name__ == &#39;__main__&#39;:<\/p>\n<p>    app.run(debug=True)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2aFlask\u5e94\u7528\u4e2d\uff0c\u9a8c\u8bc1\u7801\u56fe\u7247\u901a\u8fc7<code>\/captcha<\/code>\u8def\u7531\u751f\u6210\uff0c\u5e76\u4fdd\u5b58\u5728\u7528\u6237\u7684session\u4e2d\u3002\u5f53\u7528\u6237\u63d0\u4ea4\u8868\u5355\u65f6\uff0c<code>\/verify<\/code>\u8def\u7531\u4f1a\u9a8c\u8bc1\u7528\u6237\u8f93\u5165\u7684\u9a8c\u8bc1\u7801\u662f\u5426\u4e0esession\u4e2d\u7684\u9a8c\u8bc1\u7801\u5339\u914d\u3002<\/p>\n<\/p>\n<p><p><strong>\u9a8c\u8bc1\u7801\u6bd4\u5bf9<\/strong><\/p>\n<\/p>\n<p><p>\u9a8c\u8bc1\u7801\u6bd4\u5bf9\u7684\u6838\u5fc3\u662f\u5c06\u7528\u6237\u8f93\u5165\u7684\u9a8c\u8bc1\u7801\u4e0e\u670d\u52a1\u5668\u751f\u6210\u7684\u9a8c\u8bc1\u7801\u8fdb\u884c\u6bd4\u8f83\u3002\u4e3a\u4e86\u589e\u5f3a\u5b89\u5168\u6027\uff0c\u53ef\u4ee5\u5c06\u9a8c\u8bc1\u7801\u5b58\u50a8\u5728\u670d\u52a1\u5668\u7aef\u7684session\u4e2d\uff0c\u5e76\u5728\u9a8c\u8bc1\u65f6\u8fdb\u884c\u6bd4\u5bf9\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">@app.route(&#39;\/verify&#39;, methods=[&#39;POST&#39;])<\/p>\n<p>def verify():<\/p>\n<p>    user_input = request.form.get(&#39;captcha&#39;)<\/p>\n<p>    if user_input and user_input.upper() == session.get(&#39;captcha&#39;):<\/p>\n<p>        return &#39;Captcha verified successfully!&#39;<\/p>\n<p>    else:<\/p>\n<p>        return &#39;Captcha verification failed.&#39;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u53ef\u4ee5\u6709\u6548\u9632\u6b62\u9a8c\u8bc1\u7801\u88ab\u7be1\u6539\u6216\u91cd\u653e\u653b\u51fb\u3002<\/p>\n<\/p>\n<p><p><strong>\u9519\u8bef\u5904\u7406<\/strong><\/p>\n<\/p>\n<p><p>\u5728\u9a8c\u8bc1\u7801\u9a8c\u8bc1\u8fc7\u7a0b\u4e2d\uff0c\u9519\u8bef\u5904\u7406\u4e5f\u662f\u975e\u5e38\u91cd\u8981\u7684\u4e00\u73af\u3002\u5e38\u89c1\u7684\u9519\u8bef\u5904\u7406\u65b9\u6cd5\u5305\u62ec\uff1a<\/p>\n<\/p>\n<ol>\n<li><strong>\u91cd\u65b0\u751f\u6210\u9a8c\u8bc1\u7801<\/strong>\uff1a\u5f53\u7528\u6237\u8f93\u5165\u7684\u9a8c\u8bc1\u7801\u9519\u8bef\u65f6\uff0c\u91cd\u65b0\u751f\u6210\u5e76\u5c55\u793a\u65b0\u7684\u9a8c\u8bc1\u7801\u3002<\/li>\n<li><strong>\u9650\u5236\u91cd\u8bd5\u6b21\u6570<\/strong>\uff1a\u9632\u6b62\u6076\u610f\u7528\u6237\u4e0d\u65ad\u5c1d\u8bd5\uff0c\u901a\u8fc7\u9650\u5236\u91cd\u8bd5\u6b21\u6570\u6765\u63d0\u9ad8\u5b89\u5168\u6027\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u5728session\u4e2d\u8bb0\u5f55\u9a8c\u8bc1\u7801\u8f93\u5165\u9519\u8bef\u7684\u6b21\u6570\uff0c\u5f53\u9519\u8bef\u6b21\u6570\u8d85\u8fc7\u4e00\u5b9a\u9608\u503c\u65f6\uff0c\u7981\u7528\u9a8c\u8bc1\u7801\u529f\u80fd\u3002<\/li>\n<\/ol>\n<p><p><strong>\u4f18\u5316\u6027\u80fd<\/strong><\/p>\n<\/p>\n<p><p>\u4e3a\u4e86\u4f18\u5316\u9a8c\u8bc1\u7801\u7684\u6027\u80fd\uff0c\u53ef\u4ee5\u8003\u8651\u4ee5\u4e0b\u51e0\u70b9\uff1a<\/p>\n<\/p>\n<ol>\n<li><strong>\u7f13\u5b58\u9a8c\u8bc1\u7801<\/strong>\uff1a\u5c06\u751f\u6210\u7684\u9a8c\u8bc1\u7801\u56fe\u7247\u7f13\u5b58\u8d77\u6765\uff0c\u907f\u514d\u6bcf\u6b21\u8bf7\u6c42\u90fd\u91cd\u65b0\u751f\u6210\u3002<\/li>\n<li><strong>\u5f02\u6b65\u751f\u6210\u9a8c\u8bc1\u7801<\/strong>\uff1a\u4f7f\u7528\u5f02\u6b65\u4efb\u52a1\u961f\u5217\uff08\u5982Celery\uff09\u5f02\u6b65\u751f\u6210\u9a8c\u8bc1\u7801\u56fe\u7247\uff0c\u63d0\u9ad8\u751f\u6210\u901f\u5ea6\u3002<\/li>\n<li><strong>\u51cf\u5c11\u56fe\u7247\u5927\u5c0f<\/strong>\uff1a\u901a\u8fc7\u8c03\u6574\u9a8c\u8bc1\u7801\u56fe\u7247\u7684\u5c3a\u5bf8\u548c\u8d28\u91cf\uff0c\u51cf\u5c11\u56fe\u7247\u7684\u4f20\u8f93\u65f6\u95f4\uff0c\u63d0\u9ad8\u54cd\u5e94\u901f\u5ea6\u3002<\/li>\n<\/ol>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u65b9\u6cd5\uff0c\u53ef\u4ee5\u6709\u6548\u5730\u9a8c\u8bc1\u9a8c\u8bc1\u7801\u7684\u6b63\u786e\u6027\uff0c\u5e76\u63d0\u9ad8\u9a8c\u8bc1\u7801\u7684\u5b89\u5168\u6027\u548c\u6027\u80fd\u3002\u5e0c\u671b\u8fd9\u4e9b\u5185\u5bb9\u5bf9\u4f60\u6709\u6240\u5e2e\u52a9\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u5b9e\u73b0\u9a8c\u8bc1\u7801\u7684\u751f\u6210\u548c\u9a8c\u8bc1\uff1f<\/strong><br \/>\u5728Python\u4e2d\u751f\u6210\u548c\u9a8c\u8bc1\u9a8c\u8bc1\u7801\u901a\u5e38\u4f7f\u7528\u56fe\u5f62\u5e93\u548c\u968f\u673a\u6570\u751f\u6210\u5e93\u3002\u53ef\u4ee5\u5229\u7528Pillow\u5e93\u6765\u751f\u6210\u56fe\u50cf\u9a8c\u8bc1\u7801\uff0c\u4f7f\u7528random\u5e93\u6765\u751f\u6210\u968f\u673a\u5b57\u7b26\u4e32\u3002\u751f\u6210\u9a8c\u8bc1\u7801\u540e\uff0c\u9700\u5c06\u7528\u6237\u8f93\u5165\u7684\u9a8c\u8bc1\u7801\u4e0e\u751f\u6210\u7684\u9a8c\u8bc1\u7801\u8fdb\u884c\u6bd4\u8f83\uff0c\u4ee5\u9a8c\u8bc1\u5176\u6b63\u786e\u6027\u3002\u53ef\u4ee5\u5c06\u9a8c\u8bc1\u7801\u5b58\u50a8\u5728\u4f1a\u8bdd\u4e2d\uff0c\u786e\u4fdd\u5728\u540c\u4e00\u7528\u6237\u4f1a\u8bdd\u4e2d\u8fdb\u884c\u9a8c\u8bc1\u3002<\/p>\n<p><strong>\u9a8c\u8bc1\u7801\u9a8c\u8bc1\u65f6\u5e38\u89c1\u7684\u9519\u8bef\u6709\u54ea\u4e9b\uff1f<\/strong><br \/>\u5728\u9a8c\u8bc1\u7801\u9a8c\u8bc1\u8fc7\u7a0b\u4e2d\uff0c\u7528\u6237\u53ef\u80fd\u4f1a\u9047\u5230\u4e00\u4e9b\u5e38\u89c1\u9519\u8bef\uff0c\u6bd4\u5982\u8f93\u5165\u7684\u9a8c\u8bc1\u7801\u4e0e\u663e\u793a\u7684\u9a8c\u8bc1\u7801\u4e0d\u4e00\u81f4\u3001\u9a8c\u8bc1\u7801\u8fc7\u671f\uff08\u5982\u679c\u8bbe\u7f6e\u4e86\u6709\u6548\u65f6\u95f4\uff09\u6216\u662f\u7531\u4e8e\u7f51\u7edc\u5ef6\u8fdf\u5bfc\u81f4\u7684\u9a8c\u8bc1\u7801\u672a\u80fd\u53ca\u65f6\u663e\u793a\u3002\u4e3a\u4e86\u907f\u514d\u8fd9\u4e9b\u95ee\u9898\uff0c\u53ef\u4ee5\u5728\u7528\u6237\u8f93\u5165\u540e\uff0c\u63d0\u4f9b\u6e05\u6670\u7684\u63d0\u793a\u4fe1\u606f\uff0c\u786e\u4fdd\u7528\u6237\u80fd\u591f\u6b63\u786e\u83b7\u53d6\u548c\u8f93\u5165\u9a8c\u8bc1\u7801\u3002<\/p>\n<p><strong>\u5982\u4f55\u63d0\u9ad8\u9a8c\u8bc1\u7801\u7684\u5b89\u5168\u6027\uff1f<\/strong><br \/>\u4e3a\u4e86\u589e\u5f3a\u9a8c\u8bc1\u7801\u7684\u5b89\u5168\u6027\uff0c\u53ef\u4ee5\u8003\u8651\u591a\u79cd\u7b56\u7565\u3002\u4f8b\u5982\uff0c\u4f7f\u7528\u66f4\u590d\u6742\u7684\u9a8c\u8bc1\u7801\u5f62\u5f0f\uff0c\u5982\u626d\u66f2\u7684\u5b57\u7b26\u3001\u6dfb\u52a0\u80cc\u666f\u566a\u97f3\u6216\u4f7f\u7528\u56fe\u5f62\u9a8c\u8bc1\u7801\uff08reCAPTCHA\uff09\u3002\u6b64\u5916\uff0c\u5b9e\u65bd\u9a8c\u8bc1\u7801\u7684\u6709\u6548\u65f6\u95f4\u9650\u5236\u548c\u591a\u6b21\u5c1d\u8bd5\u9650\u5236\u4e5f\u662f\u91cd\u8981\u7684\u5b89\u5168\u63aa\u65bd\u3002\u8fd9\u6837\u505a\u80fd\u591f\u6709\u6548\u51cf\u5c11\u673a\u5668\u81ea\u52a8\u5316\u7834\u89e3\u9a8c\u8bc1\u7801\u7684\u53ef\u80fd\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5982\u4f55\u9a8c\u8bc1\u9a8c\u8bc1\u7801\u6b63\u786ePython \u9a8c\u8bc1\u9a8c\u8bc1\u7801\u6b63\u786e\u7684\u65b9\u6cd5\u6709\uff1a\u751f\u6210\u9a8c\u8bc1\u7801\u3001\u7528\u6237\u8f93\u5165\u3001\u9a8c\u8bc1\u7801\u6bd4\u5bf9\u3001\u9519\u8bef\u5904\u7406\u3001\u4f18\u5316\u6027\u80fd\u3002 [&hellip;]","protected":false},"author":3,"featured_media":1076084,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1076075"}],"collection":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/comments?post=1076075"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1076075\/revisions"}],"predecessor-version":[{"id":1076087,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1076075\/revisions\/1076087"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1076084"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1076075"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1076075"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1076075"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}