{"id":955510,"date":"2024-12-27T02:17:35","date_gmt":"2024-12-26T18:17:35","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/955510.html"},"modified":"2024-12-27T02:17:37","modified_gmt":"2024-12-26T18:17:37","slug":"%e6%98%93%e8%af%ad%e8%a8%80%e5%a6%82%e4%bd%95%e7%bb%93%e5%90%88python","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/955510.html","title":{"rendered":"\u6613\u8bed\u8a00\u5982\u4f55\u7ed3\u5408python"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25095430\/b7696a5d-e487-4b05-a4d4-aba0eafca320.webp\" alt=\"\u6613\u8bed\u8a00\u5982\u4f55\u7ed3\u5408python\" \/><\/p>\n<p><p> <strong>\u6613\u8bed\u8a00\u7ed3\u5408Python\u53ef\u4ee5\u901a\u8fc7\u8c03\u7528Python\u4ee3\u7801\u3001\u4f7f\u7528\u4e2d\u95f4\u4ef6\u6216API\u63a5\u53e3\u6765\u5b9e\u73b0\u3001\u5229\u7528\u7b2c\u4e09\u65b9\u5e93\u8fdb\u884c\u6574\u5408<\/strong>\u3002\u5176\u4e2d\uff0c\u8c03\u7528Python\u4ee3\u7801\u662f\u4e00\u79cd\u76f4\u63a5\u4e14\u5e38\u7528\u7684\u65b9\u6cd5\uff0c\u901a\u8fc7\u6613\u8bed\u8a00\u4e2d\u8c03\u7528Python\u811a\u672c\u7684\u65b9\u5f0f\uff0c\u53ef\u4ee5\u8f7b\u677e\u5730\u5b9e\u73b0\u4e24\u8005\u7684\u7ed3\u5408\u3002\u5177\u4f53\u65b9\u6cd5\u662f\u901a\u8fc7\u521b\u5efa\u4e00\u4e2aPython\u811a\u672c\u6587\u4ef6\uff0c\u7136\u540e\u5728\u6613\u8bed\u8a00\u4e2d\u901a\u8fc7\u547d\u4ee4\u884c\u7684\u65b9\u5f0f\u6765\u6267\u884c\u8fd9\u4e2a\u811a\u672c\uff0c\u4ece\u800c\u5b9e\u73b0\u529f\u80fd\u7684\u6269\u5c55\u3002\u4e3a\u4e86\u66f4\u597d\u5730\u7406\u89e3\u8fd9\u79cd\u7ed3\u5408\u65b9\u5f0f\uff0c\u672c\u6587\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u8fd9\u4e9b\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u8c03\u7528Python\u4ee3\u7801<\/h3>\n<\/p>\n<p><p>\u6613\u8bed\u8a00\u53ef\u4ee5\u901a\u8fc7\u8c03\u7528Python\u811a\u672c\u6587\u4ef6\u6765\u6267\u884cPython\u4ee3\u7801\uff0c\u8fd9\u79cd\u65b9\u6cd5\u7b80\u5355\u6613\u884c\uff0c\u9002\u5408\u521d\u5b66\u8005\u3002<\/p>\n<\/p>\n<p><h4>1\u3001\u521b\u5efaPython\u811a\u672c<\/h4>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u5728Python\u4e2d\u7f16\u5199\u4f60\u9700\u8981\u7684\u529f\u80fd\u4ee3\u7801\uff0c\u5e76\u4fdd\u5b58\u4e3a\u4e00\u4e2a<code>.py<\/code>\u6587\u4ef6\u3002\u4f8b\u5982\uff0c\u5047\u8bbe\u4f60\u9700\u8981\u5728Python\u4e2d\u8fdb\u884c\u6570\u636e\u5904\u7406\uff0c\u53ef\u4ee5\u7f16\u5199\u5982\u4e0b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># example.py<\/p>\n<p>def process_data(data):<\/p>\n<p>    return [x * 2 for x in data]<\/p>\n<p>if __name__ == &quot;__m<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>n__&quot;:<\/p>\n<p>    data = [1, 2, 3, 4, 5]<\/p>\n<p>    print(process_data(data))<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u5728\u6613\u8bed\u8a00\u4e2d\u8c03\u7528Python\u811a\u672c<\/h4>\n<\/p>\n<p><p>\u7136\u540e\uff0c\u5728\u6613\u8bed\u8a00\u4e2d\u901a\u8fc7\u547d\u4ee4\u884c\u8c03\u7528\u8be5Python\u811a\u672c\u3002\u4ee5\u4e0b\u662f\u5982\u4f55\u5728\u6613\u8bed\u8a00\u4e2d\u5b9e\u73b0\u8fd9\u4e00\u64cd\u4f5c\u7684\u57fa\u672c\u6b65\u9aa4\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-plaintext\">.\u7248\u672c 2<\/p>\n<p>.\u5c40\u90e8\u53d8\u91cf \u547d\u4ee4\u884c, \u6587\u672c\u578b<\/p>\n<p>.\u5982\u679c (\u8c03\u7528\u547d\u4ee4\u884c (&quot;python example.py&quot;, \u547d\u4ee4\u884c) \uff1d \u771f)<\/p>\n<p>    \u4fe1\u606f\u6846 (\u547d\u4ee4\u884c, 0, &quot;&quot;)<\/p>\n<p>.\u5426\u5219<\/p>\n<p>    \u4fe1\u606f\u6846 (&quot;\u8c03\u7528\u5931\u8d25&quot;, 0, &quot;&quot;)<\/p>\n<p>.\u5982\u679c\u7ed3\u675f<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\uff0c\u6613\u8bed\u8a00\u53ef\u4ee5\u76f4\u63a5\u8fd0\u884cPython\u811a\u672c\u5e76\u83b7\u53d6\u5176\u8f93\u51fa\u7ed3\u679c\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u4f7f\u7528\u4e2d\u95f4\u4ef6\u6216API\u63a5\u53e3<\/h3>\n<\/p>\n<p><p>\u901a\u8fc7\u4e2d\u95f4\u4ef6\u6216API\u63a5\u53e3\u5b9e\u73b0\u4e24\u8005\u4e4b\u95f4\u7684\u901a\u4fe1\uff0c\u53ef\u4ee5\u66f4\u597d\u5730\u5b9e\u73b0\u590d\u6742\u7cfb\u7edf\u7684\u529f\u80fd\u6574\u5408\u3002<\/p>\n<\/p>\n<p><h4>1\u3001\u4f7f\u7528\u4e2d\u95f4\u4ef6<\/h4>\n<\/p>\n<p><p>\u4e2d\u95f4\u4ef6\u53ef\u4ee5\u5728\u4e0d\u540c\u7f16\u7a0b\u8bed\u8a00\u4e4b\u95f4\u4f20\u9012\u6570\u636e\u5e76\u8c03\u7528\u529f\u80fd\u3002\u5e38\u7528\u7684\u4e2d\u95f4\u4ef6\u6709RabbitMQ\u3001ZeroMQ\u7b49\uff0c\u8fd9\u4e9b\u5de5\u5177\u53ef\u4ee5\u5728\u6613\u8bed\u8a00\u548cPython\u4e4b\u95f4\u4f20\u9012\u6570\u636e\u3002<\/p>\n<\/p>\n<p><h5>\u4f7f\u7528RabbitMQ\u793a\u4f8b<\/h5>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pika<\/p>\n<p>def send_message(message):<\/p>\n<p>    connection = pika.BlockingConnection(pika.ConnectionParameters(&#39;localhost&#39;))<\/p>\n<p>    channel = connection.channel()<\/p>\n<p>    channel.queue_declare(queue=&#39;hello&#39;)<\/p>\n<p>    channel.basic_publish(exchange=&#39;&#39;, routing_key=&#39;hello&#39;, body=message)<\/p>\n<p>    connection.close()<\/p>\n<p>send_message(&#39;Hello from Python!&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u6613\u8bed\u8a00\u4e2d\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-plaintext\">.\u7248\u672c 2<\/p>\n<p>.\u5c40\u90e8\u53d8\u91cf \u6d88\u606f, \u6587\u672c\u578b<\/p>\n<p>\/\/ \u5047\u8bbe\u5df2\u7ecf\u6709\u4e00\u4e2aRabbitMQ\u5ba2\u6237\u7aef\u5e93\u4f9b\u6613\u8bed\u8a00\u4f7f\u7528<\/p>\n<p>.\u5982\u679c (RabbitMQ_\u63a5\u6536\u6d88\u606f (&quot;hello&quot;, \u6d88\u606f) \uff1d \u771f)<\/p>\n<p>    \u4fe1\u606f\u6846 (\u6d88\u606f, 0, &quot;&quot;)<\/p>\n<p>.\u5426\u5219<\/p>\n<p>    \u4fe1\u606f\u6846 (&quot;\u63a5\u6536\u5931\u8d25&quot;, 0, &quot;&quot;)<\/p>\n<p>.\u5982\u679c\u7ed3\u675f<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u4f7f\u7528API\u63a5\u53e3<\/h4>\n<\/p>\n<p><p>\u901a\u8fc7RESTful API\u6216SOAP API\u63a5\u53e3\uff0c\u53ef\u4ee5\u5b9e\u73b0\u6613\u8bed\u8a00\u4e0ePython\u4e4b\u95f4\u7684\u901a\u4fe1\u3002<\/p>\n<\/p>\n<p><h5>\u521b\u5efaPython API\u670d\u52a1<\/h5>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528Flask\u6216Django\u7b49\u6846\u67b6\u521b\u5efa\u4e00\u4e2a\u7b80\u5355\u7684RESTful API\u670d\u52a1\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from flask import Flask, jsonify<\/p>\n<p>app = Flask(__name__)<\/p>\n<p>@app.route(&#39;\/get_data&#39;, methods=[&#39;GET&#39;])<\/p>\n<p>def get_data():<\/p>\n<p>    return jsonify({&#39;data&#39;: [1, 2, 3, 4, 5]})<\/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\u6613\u8bed\u8a00\u4e2d\uff0c\u901a\u8fc7HTTP\u8bf7\u6c42\u8bbf\u95ee\u6b64API\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-plaintext\">.\u7248\u672c 2<\/p>\n<p>.\u5c40\u90e8\u53d8\u91cf \u54cd\u5e94, \u6587\u672c\u578b<\/p>\n<p>\/\/ \u5047\u8bbe\u6709HTTP\u8bf7\u6c42\u5e93<\/p>\n<p>.\u5982\u679c (HTTP_\u8bf7\u6c42 (&quot;http:\/\/localhost:5000\/get_data&quot;, \u54cd\u5e94) \uff1d \u771f)<\/p>\n<p>    \u4fe1\u606f\u6846 (\u54cd\u5e94, 0, &quot;&quot;)<\/p>\n<p>.\u5426\u5219<\/p>\n<p>    \u4fe1\u606f\u6846 (&quot;\u8bf7\u6c42\u5931\u8d25&quot;, 0, &quot;&quot;)<\/p>\n<p>.\u5982\u679c\u7ed3\u675f<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e09\u3001\u5229\u7528\u7b2c\u4e09\u65b9\u5e93\u8fdb\u884c\u6574\u5408<\/h3>\n<\/p>\n<p><p>\u501f\u52a9\u7b2c\u4e09\u65b9\u5e93\uff0c\u6613\u8bed\u8a00\u53ef\u4ee5\u76f4\u63a5\u8c03\u7528Python\u7684\u529f\u80fd\uff0c\u8fd9\u79cd\u65b9\u5f0f\u9002\u5408\u4e8e\u9700\u8981\u9891\u7e41\u4ea4\u4e92\u7684\u573a\u666f\u3002<\/p>\n<\/p>\n<p><h4>1\u3001\u4f7f\u7528Python for .NET<\/h4>\n<\/p>\n<p><p>Python for .NET\uff08pythonnet\uff09\u5141\u8bb8Python\u4ee3\u7801\u4e0e.NET\u6846\u67b6\u96c6\u6210\uff0c\u901a\u8fc7\u8be5\u5e93\u53ef\u4ee5\u5728.NET\u73af\u5883\u4e2d\u8c03\u7528Python\u4ee3\u7801\u3002<\/p>\n<\/p>\n<p><h5>\u5b89\u88c5pythonnet<\/h5>\n<\/p>\n<p><p>\u5728Python\u73af\u5883\u4e2d\u5b89\u88c5pythonnet\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-shell\">pip install pythonnet<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h5>\u5728\u6613\u8bed\u8a00\u4e2d\u8c03\u7528Python\u529f\u80fd<\/h5>\n<\/p>\n<p><p>\u5728\u6613\u8bed\u8a00\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u52a0\u8f7d.NET\u5e93\u7684\u65b9\u5f0f\u6765\u8c03\u7528Python\u529f\u80fd\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-plaintext\">.\u7248\u672c 2<\/p>\n<p>.\u7a0b\u5e8f\u96c6\u5f15\u7528 mscorlib<\/p>\n<p>.\u7a0b\u5e8f\u96c6\u5f15\u7528 Python.Runtime<\/p>\n<p>.\u5c40\u90e8\u53d8\u91cf py, \u5bf9\u8c61<\/p>\n<p>.\u5c40\u90e8\u53d8\u91cf result, \u6587\u672c\u578b<\/p>\n<p>py \uff1d Python.Runtime.Py.GIL()<\/p>\n<p>py.\u6267\u884c (&quot;import example&quot;)<\/p>\n<p>result \uff1d py.\u8c03\u7528 (&quot;example.process_data&quot;, &quot;1,2,3,4,5&quot;)<\/p>\n<p>\u4fe1\u606f\u6846 (result, 0, &quot;&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u9700\u8981\u4e00\u5b9a\u7684C#\u548c.NET\u77e5\u8bc6\uff0c\u4f46\u5bf9\u4e8e\u9700\u8981\u6df1\u5ea6\u7ed3\u5408\u7684\u9879\u76ee\u975e\u5e38\u6709\u7528\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u7ed3\u5408\u6613\u8bed\u8a00\u4e0ePython\u53ef\u4ee5\u5145\u5206\u5229\u7528\u4e24\u8005\u7684\u4f18\u52bf\uff0c\u5b9e\u73b0\u66f4\u4e3a\u590d\u6742\u7684\u529f\u80fd\u548c\u7cfb\u7edf\u8bbe\u8ba1\u3002\u901a\u8fc7\u8c03\u7528Python\u4ee3\u7801\u3001\u4f7f\u7528\u4e2d\u95f4\u4ef6\u6216API\u63a5\u53e3\u4ee5\u53ca\u5229\u7528\u7b2c\u4e09\u65b9\u5e93\uff0c\u53ef\u4ee5\u5728\u4e0d\u540c\u573a\u666f\u4e0b\u9009\u62e9\u6700\u9002\u5408\u7684\u96c6\u6210\u65b9\u5f0f\u3002<strong>\u5176\u4e2d\uff0c\u8c03\u7528Python\u811a\u672c\u662f\u6700\u76f4\u63a5\u7684\u65b9\u6cd5\uff0c\u800c\u4f7f\u7528\u4e2d\u95f4\u4ef6\u548cAPI\u63a5\u53e3\u5219\u63d0\u4f9b\u4e86\u66f4\u7075\u6d3b\u7684\u6574\u5408\u65b9\u6848<\/strong>\u3002\u5bf9\u4e8e\u9700\u8981\u6df1\u5ea6\u7ed3\u5408\u7684\u5e94\u7528\uff0c\u53ef\u4ee5\u8003\u8651\u5229\u7528pythonnet\u7b49\u5de5\u5177\u8fdb\u884c\u65e0\u7f1d\u96c6\u6210\u3002\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u9009\u62e9\u5408\u9002\u7684\u7ed3\u5408\u65b9\u5f0f\u80fd\u591f\u5927\u5e45\u63d0\u5347\u5f00\u53d1\u6548\u7387\u548c\u7cfb\u7edf\u6027\u80fd\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u6613\u8bed\u8a00\u53ef\u4ee5\u5982\u4f55\u4e0ePython\u8fdb\u884c\u4ea4\u4e92\uff1f<\/strong><br \/>\u6613\u8bed\u8a00\u53ef\u4ee5\u901a\u8fc7\u8c03\u7528Python\u811a\u672c\u6765\u5b9e\u73b0\u4e0ePython\u7684\u4ea4\u4e92\u3002\u7528\u6237\u53ef\u4ee5\u4f7f\u7528\u6613\u8bed\u8a00\u7684ShellExecute\u51fd\u6570\u6765\u6267\u884cPython\u811a\u672c\uff0c\u5e76\u901a\u8fc7\u547d\u4ee4\u884c\u53c2\u6570\u4f20\u9012\u6570\u636e\u3002\u6b64\u5916\uff0c\u53ef\u4ee5\u5229\u7528Python\u7684\u6807\u51c6\u8f93\u5165\u8f93\u51fa\u529f\u80fd\uff0c\u5c06\u6570\u636e\u4ecePython\u4f20\u56de\u6613\u8bed\u8a00\u8fdb\u884c\u5904\u7406\u3002\u8fd9\u6837\u53ef\u4ee5\u5b9e\u73b0\u4e24\u8005\u4e4b\u95f4\u7684\u6570\u636e\u4ea4\u6362\u4e0e\u529f\u80fd\u6574\u5408\u3002<\/p>\n<p><strong>\u5728\u6613\u8bed\u8a00\u4e2d\u5982\u4f55\u5b89\u88c5\u548c\u914d\u7f6ePython\u73af\u5883\uff1f<\/strong><br \/>\u5728\u6613\u8bed\u8a00\u4e2d\u4f7f\u7528Python\u4e4b\u524d\uff0c\u7528\u6237\u9700\u8981\u786e\u4fdd\u5df2\u5b89\u88c5Python\u73af\u5883\u3002\u53ef\u4ee5\u4ecePython\u5b98\u65b9\u7f51\u7ad9\u4e0b\u8f7d\u5e76\u5b89\u88c5\u6700\u65b0\u7248\u672c\u7684Python\u3002\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u9700\u5c06Python\u7684\u5b89\u88c5\u8def\u5f84\u6dfb\u52a0\u5230\u7cfb\u7edf\u7684\u73af\u5883\u53d8\u91cf\u4e2d\uff0c\u4ee5\u4fbf\u6613\u8bed\u8a00\u80fd\u591f\u8bc6\u522bPython\u7684\u547d\u4ee4\u3002\u7528\u6237\u8fd8\u53ef\u4ee5\u5728\u6613\u8bed\u8a00\u7684\u4ee3\u7801\u4e2d\u76f4\u63a5\u8c03\u7528Python\u7684\u76f8\u5173\u5e93\uff0c\u5b9e\u73b0\u66f4\u4e30\u5bcc\u7684\u529f\u80fd\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728\u6613\u8bed\u8a00\u4e2d\u8c03\u7528Python\u5e93\u5b9e\u73b0\u7279\u5b9a\u529f\u80fd\uff1f<\/strong><br \/>\u7528\u6237\u53ef\u4ee5\u5728\u6613\u8bed\u8a00\u4e2d\u901a\u8fc7\u521b\u5efa\u4e00\u4e2aPython\u811a\u672c\u6765\u5b9e\u73b0\u7279\u5b9a\u529f\u80fd\uff0c\u6bd4\u5982\u6570\u636e\u5904\u7406\u6216<a href=\"https:\/\/docs.pingcode.com\/ask\/59192.html\" target=\"_blank\">\u673a\u5668\u5b66\u4e60<\/a>\u3002\u5c06\u811a\u672c\u4e2d\u7684\u529f\u80fd\u5c01\u88c5\u4e3a\u51fd\u6570\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7\u547d\u4ee4\u884c\u53c2\u6570\u4f20\u9012\u8f93\u5165\u6570\u636e\uff0c\u5e76\u5728\u6613\u8bed\u8a00\u4e2d\u63a5\u6536\u8f93\u51fa\u7ed3\u679c\u3002\u4e3a\u4e86\u66f4\u597d\u5730\u8c03\u7528Python\u5e93\uff0c\u5efa\u8bae\u4f7f\u7528\u6613\u8bed\u8a00\u7684\u5916\u90e8\u51fd\u6570\u8c03\u7528\u529f\u80fd\uff0c\u786e\u4fdd\u80fd\u987a\u5229\u8fd0\u884cPython\u4ee3\u7801\u5e76\u5904\u7406\u8fd4\u56de\u503c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u6613\u8bed\u8a00\u7ed3\u5408Python\u53ef\u4ee5\u901a\u8fc7\u8c03\u7528Python\u4ee3\u7801\u3001\u4f7f\u7528\u4e2d\u95f4\u4ef6\u6216API\u63a5\u53e3\u6765\u5b9e\u73b0\u3001\u5229\u7528\u7b2c\u4e09\u65b9\u5e93\u8fdb\u884c\u6574\u5408\u3002\u5176\u4e2d\uff0c [&hellip;]","protected":false},"author":3,"featured_media":955517,"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\/955510"}],"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=955510"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/955510\/revisions"}],"predecessor-version":[{"id":955519,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/955510\/revisions\/955519"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/955517"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=955510"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=955510"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=955510"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}