{"id":948968,"date":"2024-12-27T00:08:30","date_gmt":"2024-12-26T16:08:30","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/948968.html"},"modified":"2024-12-27T00:08:32","modified_gmt":"2024-12-26T16:08:32","slug":"python-%e5%a6%82%e4%bd%95%e8%b5%8b%e5%80%bc%e6%95%b0%e5%ad%97","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/948968.html","title":{"rendered":"python \u5982\u4f55\u8d4b\u503c\u6570\u5b57"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25084133\/0a59ad3b-6380-4903-b5bc-add03a78f388.webp\" alt=\"python \u5982\u4f55\u8d4b\u503c\u6570\u5b57\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\uff0c\u8d4b\u503c\u6570\u5b57\u7684\u65b9\u5f0f\u6709\u591a\u79cd\uff0c\u4e3b\u8981\u5305\u62ec\u76f4\u63a5\u8d4b\u503c\u3001\u4f7f\u7528\u8fd0\u7b97\u8868\u8fbe\u5f0f\u8fdb\u884c\u8d4b\u503c\u3001\u901a\u8fc7\u51fd\u6570\u8fd4\u56de\u503c\u8d4b\u503c\u7b49<\/strong>\u3002\u76f4\u63a5\u8d4b\u503c\u662f\u6700\u5e38\u89c1\u548c\u6700\u7b80\u5355\u7684\u4e00\u79cd\u65b9\u5f0f\uff0c\u901a\u8fc7\u4f7f\u7528\u7b49\u53f7\uff08=\uff09\u5c06\u4e00\u4e2a\u6570\u5b57\u8d4b\u7ed9\u4e00\u4e2a\u53d8\u91cf\u3002\u4f8b\u5982\uff0c<code>a = 5<\/code>\u3002\u503c\u5f97\u6ce8\u610f\u7684\u662f\uff0cPython\u662f\u4e00\u79cd\u52a8\u6001\u7c7b\u578b\u8bed\u8a00\uff0c\u8fd9\u610f\u5473\u7740\u53d8\u91cf\u5728\u8d4b\u503c\u65f6\u4e0d\u9700\u8981\u6307\u5b9a\u7c7b\u578b\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u6df1\u5165\u63a2\u8ba8Python\u4e2d\u8d4b\u503c\u6570\u5b57\u7684\u5404\u79cd\u65b9\u5f0f\u548c\u76f8\u5173\u6982\u5ff5\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u76f4\u63a5\u8d4b\u503c<\/p>\n<\/p>\n<p><p>\u76f4\u63a5\u8d4b\u503c\u662fPython\u4e2d\u6700\u57fa\u7840\u7684\u8d4b\u503c\u65b9\u6cd5\u4e4b\u4e00\u3002\u901a\u8fc7\u76f4\u63a5\u8d4b\u503c\uff0c\u53ef\u4ee5\u5c06\u4e00\u4e2a\u5177\u4f53\u7684\u6570\u5b57\u503c\u5206\u914d\u7ed9\u4e00\u4e2a\u53d8\u91cf\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">x = 10<\/p>\n<p>y = 3.14<\/p>\n<p>z = -5<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4ee5\u4e0a\u4ee3\u7801\u4e2d\uff0c\u53d8\u91cf<code>x<\/code>\u88ab\u8d4b\u503c\u4e3a\u6574\u657010\uff0c<code>y<\/code>\u88ab\u8d4b\u503c\u4e3a\u6d6e\u70b9\u65703.14\uff0c<code>z<\/code>\u5219\u88ab\u8d4b\u503c\u4e3a\u8d1f\u6574\u6570-5\u3002Python\u4e2d\u4e0d\u9700\u8981\u58f0\u660e\u53d8\u91cf\u7c7b\u578b\uff0c\u89e3\u91ca\u5668\u4f1a\u6839\u636e\u8d4b\u503c\u7684\u503c\u81ea\u52a8\u63a8\u65ad\u7c7b\u578b\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u8fd0\u7b97\u8868\u8fbe\u5f0f\u8d4b\u503c<\/p>\n<\/p>\n<p><p>Python\u652f\u6301\u901a\u8fc7\u8fd0\u7b97\u8868\u8fbe\u5f0f\u8fdb\u884c\u8d4b\u503c\uff0c\u8fd9\u79cd\u65b9\u5f0f\u53ef\u4ee5\u5728\u8d4b\u503c\u7684\u540c\u65f6\u5b8c\u6210\u4e00\u5b9a\u7684\u8fd0\u7b97\u64cd\u4f5c\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">a = 10<\/p>\n<p>b = a + 5  # \u7ed3\u679c\u4e3a15<\/p>\n<p>c = a * 2  # \u7ed3\u679c\u4e3a20<\/p>\n<p>d = b \/ 3  # \u7ed3\u679c\u4e3a5.0<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4ee5\u4e0a\u4ee3\u7801\u4e2d\uff0c<code>b<\/code>\u88ab\u8d4b\u503c\u4e3a<code>a<\/code>\u52a0\u4e0a5\u7684\u7ed3\u679c\uff0c<code>c<\/code>\u662f<code>a<\/code>\u7684\u4e24\u500d\uff0c<code>d<\/code>\u5219\u662f<code>b<\/code>\u9664\u4ee53\u7684\u7ed3\u679c\u3002\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\uff0c\u53ef\u4ee5\u5728\u8d4b\u503c\u7684\u540c\u65f6\u5b8c\u6210\u590d\u6742\u7684\u8ba1\u7b97\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u901a\u8fc7\u51fd\u6570\u8fd4\u56de\u503c\u8d4b\u503c<\/p>\n<\/p>\n<p><p>Python\u4e2d\u7684\u51fd\u6570\u53ef\u4ee5\u8fd4\u56de\u4e00\u4e2a\u503c\uff0c\u5e76\u5c06\u8be5\u503c\u8d4b\u7ed9\u4e00\u4e2a\u53d8\u91cf\u3002\u8fd9\u79cd\u65b9\u5f0f\u4e0d\u4ec5\u53ef\u4ee5\u5b9e\u73b0\u8d4b\u503c\uff0c\u8fd8\u53ef\u4ee5\u63d0\u9ad8\u4ee3\u7801\u7684\u590d\u7528\u6027\u548c\u53ef\u8bfb\u6027\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u4f8b\u5b50\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def add(x, y):<\/p>\n<p>    return x + y<\/p>\n<p>result = add(5, 7)  # \u7ed3\u679c\u4e3a12<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u5b9a\u4e49\u4e86\u4e00\u4e2a\u51fd\u6570<code>add<\/code>\uff0c\u7528\u4e8e\u8ba1\u7b97\u4e24\u4e2a\u6570\u7684\u548c\u3002\u51fd\u6570\u8fd4\u56de\u7684\u503c\u88ab\u8d4b\u7ed9\u53d8\u91cf<code>result<\/code>\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001\u591a\u53d8\u91cf\u540c\u65f6\u8d4b\u503c<\/p>\n<\/p>\n<p><p>Python\u5141\u8bb8\u5728\u4e00\u884c\u4e2d\u540c\u65f6\u4e3a\u591a\u4e2a\u53d8\u91cf\u8d4b\u503c\uff0c\u8fd9\u79cd\u7279\u6027\u4f7f\u5f97\u4ee3\u7801\u66f4\u52a0\u7b80\u6d01\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">x, y, z = 1, 2, 3<\/p>\n<p>a, b = b, a  # \u4ea4\u6362a\u548cb\u7684\u503c<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u7b2c\u4e00\u4e2a\u793a\u4f8b\u4e2d\uff0c<code>x<\/code>\u3001<code>y<\/code>\u3001<code>z<\/code>\u5206\u522b\u88ab\u8d4b\u503c\u4e3a1\u30012\u30013\u3002\u7b2c\u4e8c\u4e2a\u793a\u4f8b\u5c55\u793a\u4e86\u5982\u4f55\u901a\u8fc7\u591a\u53d8\u91cf\u8d4b\u503c\u5b9e\u73b0\u53d8\u91cf\u4ea4\u6362\u3002<\/p>\n<\/p>\n<p><p>\u4e94\u3001\u4f7f\u7528\u5185\u7f6e\u51fd\u6570\u8d4b\u503c<\/p>\n<\/p>\n<p><p>Python\u63d0\u4f9b\u4e86\u4e00\u4e9b\u5185\u7f6e\u51fd\u6570\uff0c\u53ef\u4ee5\u7528\u4e8e\u751f\u6210\u548c\u8d4b\u503c\u6570\u5b57\u3002\u4f8b\u5982\uff0c<code>int()<\/code>\u3001<code>float()<\/code>\u3001<code>round()<\/code>\u7b49\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">num = int(&quot;10&quot;)  # \u5c06\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u6574\u6570<\/p>\n<p>pi = float(&quot;3.14159&quot;)  # \u5c06\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u6d6e\u70b9\u6570<\/p>\n<p>rounded_value = round(3.14159, 2)  # \u5c06\u6570\u5b57\u56db\u820d\u4e94\u5165\u5230\u5c0f\u6570\u70b9\u540e\u4e24\u4f4d<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u4e9b\u5185\u7f6e\u51fd\u6570\u4e3a\u6570\u636e\u7c7b\u578b\u7684\u8f6c\u6362\u548c\u6570\u503c\u7684\u5904\u7406\u63d0\u4f9b\u4e86\u4fbf\u6377\u7684\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><p>\u516d\u3001\u901a\u8fc7\u6570\u636e\u7ed3\u6784\u8d4b\u503c<\/p>\n<\/p>\n<p><p>Python\u4e2d\u7684\u6570\u636e\u7ed3\u6784\uff0c\u5982\u5217\u8868\u3001\u5143\u7ec4\u3001\u5b57\u5178\u7b49\uff0c\u4e5f\u53ef\u4ee5\u7528\u4e8e\u8d4b\u503c\u6570\u5b57\u3002\u8fd9\u79cd\u65b9\u5f0f\u4f7f\u5f97\u5904\u7406\u5927\u91cf\u6570\u636e\u66f4\u52a0\u9ad8\u6548\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u5217\u8868<\/p>\n<p>numbers = [1, 2, 3, 4, 5]<\/p>\n<p>numbers[0] = 10  # \u4fee\u6539\u5217\u8868\u4e2d\u7684\u5143\u7d20<\/p>\n<h2><strong>\u5143\u7ec4<\/strong><\/h2>\n<p>coordinates = (1.0, 2.0, 3.0)<\/p>\n<h2><strong>\u5143\u7ec4\u662f\u4e0d\u53ef\u53d8\u7684\uff0c\u4e0d\u80fd\u76f4\u63a5\u4fee\u6539\u5143\u7d20<\/strong><\/h2>\n<h2><strong>\u5b57\u5178<\/strong><\/h2>\n<p>ages = {&quot;Alice&quot;: 25, &quot;Bob&quot;: 30}<\/p>\n<p>ages[&quot;Alice&quot;] = 26  # \u4fee\u6539\u5b57\u5178\u4e2d\u5143\u7d20\u7684\u503c<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u8fd9\u4e9b\u6570\u636e\u7ed3\u6784\uff0c\u53ef\u4ee5\u66f4\u65b9\u4fbf\u5730\u7ba1\u7406\u548c\u64cd\u4f5c\u6570\u5b57\u3002<\/p>\n<\/p>\n<p><p>\u4e03\u3001\u4f7f\u7528\u7b2c\u4e09\u65b9\u5e93\u8d4b\u503c<\/p>\n<\/p>\n<p><p>Python\u751f\u6001\u7cfb\u7edf\u4e2d\u6709\u8bb8\u591a\u7b2c\u4e09\u65b9\u5e93\u53ef\u4ee5\u5e2e\u52a9\u5904\u7406\u548c\u8d4b\u503c\u6570\u5b57\uff0c\u5c24\u5176\u662f\u5728\u79d1\u5b66\u8ba1\u7b97\u548c\u6570\u636e\u5206\u6790\u9886\u57df\u3002\u4f8b\u5982\uff0cNumPy\u662f\u4e00\u4e2a\u975e\u5e38\u6d41\u884c\u7684\u5e93\uff0c\u7528\u4e8e\u5904\u7406\u5927\u578b\u591a\u7ef4\u6570\u7ec4\u548c\u77e9\u9635\u8fd0\u7b97\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import numpy as np<\/p>\n<p>array = np.array([1, 2, 3, 4, 5])<\/p>\n<p>array[0] = 10  # \u4fee\u6539\u6570\u7ec4\u4e2d\u7684\u5143\u7d20<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>NumPy\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u51fd\u6570\u548c\u65b9\u6cd5\uff0c\u7528\u4e8e\u9ad8\u6548\u5730\u5904\u7406\u6570\u503c\u6570\u636e\u3002<\/p>\n<\/p>\n<p><p>\u516b\u3001\u4f7f\u7528\u751f\u6210\u5668\u8d4b\u503c<\/p>\n<\/p>\n<p><p>Python\u4e2d\u7684\u751f\u6210\u5668\u53ef\u4ee5\u7528\u4e8e\u5728\u8d4b\u503c\u65f6\u52a8\u6001\u751f\u6210\u6570\u5b57\u5e8f\u5217\u3002\u751f\u6210\u5668\u662f\u4e00\u79cd\u7279\u6b8a\u7684\u8fed\u4ee3\u5668\uff0c\u4f7f\u7528<code>yield<\/code>\u5173\u952e\u5b57\u751f\u6210\u503c\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def number_generator():<\/p>\n<p>    for i in range(10):<\/p>\n<p>        yield i<\/p>\n<p>gen = number_generator()<\/p>\n<p>first_number = next(gen)  # \u83b7\u53d6\u751f\u6210\u5668\u4e2d\u7684\u7b2c\u4e00\u4e2a\u503c<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u751f\u6210\u5668\u53ef\u4ee5\u5728\u9700\u8981\u65f6\u751f\u6210\u503c\uff0c\u8282\u7701\u5185\u5b58\u5e76\u63d0\u9ad8\u6548\u7387\u3002<\/p>\n<\/p>\n<p><p>\u4e5d\u3001\u4f7f\u7528\u5217\u8868\u89e3\u6790\u8d4b\u503c<\/p>\n<\/p>\n<p><p>\u5217\u8868\u89e3\u6790\u662f\u4e00\u79cd\u7b80\u6d01\u7684Python\u8bed\u6cd5\uff0c\u7528\u4e8e\u751f\u6210\u5217\u8868\u5e76\u8fdb\u884c\u8d4b\u503c\u3002\u5b83\u53ef\u4ee5\u5728\u4e00\u884c\u4ee3\u7801\u4e2d\u5b8c\u6210\u590d\u6742\u7684\u64cd\u4f5c\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">squares = [x2 for x in range(10)]  # \u751f\u62100\u52309\u7684\u5e73\u65b9\u6570\u5217\u8868<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5217\u8868\u89e3\u6790\u63d0\u4f9b\u4e86\u4e00\u79cd\u4f18\u96c5\u7684\u65b9\u5f0f\u6765\u751f\u6210\u548c\u8d4b\u503c\u6570\u5b57\u5217\u8868\u3002<\/p>\n<\/p>\n<p><p>\u5341\u3001\u603b\u7ed3\u4e0e\u5efa\u8bae<\/p>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u8d4b\u503c\u6570\u5b57\u7684\u65b9\u6cd5\u591a\u79cd\u591a\u6837\uff0c\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u53ef\u4ee5\u63d0\u9ad8\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u548c\u6548\u7387\u3002\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u5e94\u6839\u636e\u5177\u4f53\u9700\u6c42\u9009\u62e9\u9002\u5408\u7684\u8d4b\u503c\u65b9\u5f0f\uff0c\u5e76\u5145\u5206\u5229\u7528Python\u7684\u52a8\u6001\u7c7b\u578b\u7279\u6027\u548c\u4e30\u5bcc\u7684\u5e93\u8d44\u6e90\u3002\u65e0\u8bba\u662f\u7b80\u5355\u7684\u76f4\u63a5\u8d4b\u503c\uff0c\u8fd8\u662f\u590d\u6742\u7684\u8fd0\u7b97\u8868\u8fbe\u5f0f\u8d4b\u503c\uff0c\u638c\u63e1\u8fd9\u4e9b\u6280\u5de7\u5c06\u5927\u5927\u63d0\u5347\u7f16\u7a0b\u6548\u7387\u548c\u4ee3\u7801\u8d28\u91cf\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5728Python\u4e2d\uff0c\u5982\u4f55\u5c06\u6570\u5b57\u8d4b\u503c\u7ed9\u53d8\u91cf\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u7b80\u5355\u7684\u8d4b\u503c\u8bed\u53e5\u5c06\u6570\u5b57\u8d4b\u503c\u7ed9\u53d8\u91cf\u3002\u4f8b\u5982\uff0c\u4f7f\u7528<code>=<\/code>\u8fd0\u7b97\u7b26\u5c06\u4e00\u4e2a\u6570\u5b57\uff08\u59825\uff09\u8d4b\u503c\u7ed9\u53d8\u91cf<code>x<\/code>\uff0c\u4ee3\u7801\u5982\u4e0b\uff1a<code>x = 5<\/code>\u3002\u6b64\u65f6\uff0c\u53d8\u91cf<code>x<\/code>\u5c31\u5b58\u50a8\u4e86\u503c5\uff0c\u53ef\u4ee5\u5728\u540e\u7eed\u7684\u4ee3\u7801\u4e2d\u4f7f\u7528\u3002<\/p>\n<p><strong>Python\u4e2d\u53ef\u4ee5\u8d4b\u503c\u54ea\u4e9b\u7c7b\u578b\u7684\u6570\u5b57\uff1f<\/strong><br \/>Python\u652f\u6301\u591a\u79cd\u7c7b\u578b\u7684\u6570\u5b57\u8d4b\u503c\uff0c\u5305\u62ec\u6574\u6570\uff08\u5982<code>1<\/code>\u3001<code>-10<\/code>\uff09\u3001\u6d6e\u70b9\u6570\uff08\u5982<code>3.14<\/code>\u3001<code>-0.001<\/code>\uff09\u4ee5\u53ca\u590d\u6570\uff08\u5982<code>2 + 3j<\/code>\uff09\u3002\u6839\u636e\u9700\u8981\uff0c\u53ef\u4ee5\u81ea\u7531\u9009\u62e9\u9002\u5408\u7684\u6570\u5b57\u7c7b\u578b\u8fdb\u884c\u8d4b\u503c\u3002<\/p>\n<p><strong>\u5728Python\u4e2d\uff0c\u5982\u4f55\u5bf9\u8d4b\u503c\u7684\u6570\u5b57\u8fdb\u884c\u8fd0\u7b97\uff1f<\/strong><br \/>\u53ef\u4ee5\u5bf9\u8d4b\u503c\u7684\u6570\u5b57\u8fdb\u884c\u5404\u79cd\u7b97\u672f\u8fd0\u7b97\uff0c\u4f8b\u5982\u52a0\u6cd5\u3001\u51cf\u6cd5\u3001\u4e58\u6cd5\u548c\u9664\u6cd5\u3002\u4f7f\u7528\u8fd0\u7b97\u7b26\u8fdb\u884c\u8ba1\u7b97\u65f6\uff0cPython\u4f1a\u81ea\u52a8\u8bc6\u522b\u53d8\u91cf\u7684\u7c7b\u578b\u3002\u4f8b\u5982\uff0c\u82e5<code>a = 10<\/code>\u548c<code>b = 5<\/code>\uff0c\u5219\u53ef\u4ee5\u4f7f\u7528<code>c = a + b<\/code>\u6765\u8ba1\u7b97\u548c\uff0c\u5e76\u5c06\u7ed3\u679c\u8d4b\u503c\u7ed9\u53d8\u91cf<code>c<\/code>\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\uff0c\u8d4b\u503c\u6570\u5b57\u7684\u65b9\u5f0f\u6709\u591a\u79cd\uff0c\u4e3b\u8981\u5305\u62ec\u76f4\u63a5\u8d4b\u503c\u3001\u4f7f\u7528\u8fd0\u7b97\u8868\u8fbe\u5f0f\u8fdb\u884c\u8d4b\u503c\u3001\u901a\u8fc7\u51fd\u6570\u8fd4\u56de\u503c\u8d4b\u503c\u7b49\u3002\u76f4\u63a5\u8d4b [&hellip;]","protected":false},"author":3,"featured_media":948974,"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\/948968"}],"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=948968"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/948968\/revisions"}],"predecessor-version":[{"id":948975,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/948968\/revisions\/948975"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/948974"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=948968"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=948968"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=948968"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}