{"id":1072969,"date":"2025-01-08T11:21:04","date_gmt":"2025-01-08T03:21:04","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1072969.html"},"modified":"2025-01-08T11:21:06","modified_gmt":"2025-01-08T03:21:06","slug":"%e5%a6%82%e4%bd%95%e7%94%a8python%e8%bf%90%e8%a1%8c%e4%b8%80%e4%b8%aa%e5%8f%98%e9%87%8f-2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1072969.html","title":{"rendered":"\u5982\u4f55\u7528python\u8fd0\u884c\u4e00\u4e2a\u53d8\u91cf"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25103028\/b6c74bde-5fa9-4be6-b80a-2a51250026e2.webp\" alt=\"\u5982\u4f55\u7528python\u8fd0\u884c\u4e00\u4e2a\u53d8\u91cf\" \/><\/p>\n<p><p> <strong>\u7528Python\u8fd0\u884c\u4e00\u4e2a\u53d8\u91cf\u7684\u65b9\u6cd5\u6709\u5f88\u591a\u79cd\uff0c\u4e3b\u8981\u5305\u62ec\u8d4b\u503c\u3001\u8fd0\u7b97\u3001\u51fd\u6570\u8c03\u7528\u7b49\u3002<\/strong> \u4f8b\u5982\uff0c\u53d8\u91cf\u53ef\u4ee5\u901a\u8fc7\u7b80\u5355\u7684\u8d4b\u503c\u8bed\u53e5\u6765\u521b\u5efa\u548c\u4f7f\u7528\uff0c\u901a\u8fc7\u5404\u79cd\u8fd0\u7b97\u7b26\u6765\u8fdb\u884c\u6570\u5b66\u8fd0\u7b97\uff0c\u6216\u8005\u901a\u8fc7\u51fd\u6570\u8c03\u7528\u6765\u8fdb\u884c\u66f4\u590d\u6742\u7684\u64cd\u4f5c\u3002<strong>\u5728Python\u4e2d\uff0c\u53d8\u91cf\u662f\u52a8\u6001\u7c7b\u578b\u7684\uff0c\u8fd9\u610f\u5473\u7740\u4f60\u53ef\u4ee5\u5728\u8fd0\u884c\u65f6\u6539\u53d8\u53d8\u91cf\u7684\u7c7b\u578b\u548c\u503c\u3002<\/strong><\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u521b\u5efa\u548c\u8d4b\u503c\u53d8\u91cf<\/h3>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u521b\u5efa\u53d8\u91cf\u975e\u5e38\u7b80\u5355\uff0c\u53ea\u9700\u8981\u4f7f\u7528\u8d4b\u503c\u8fd0\u7b97\u7b26 <code>=<\/code>\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">x = 10<\/p>\n<p>y = &quot;Hello, World!&quot;<\/p>\n<p>z = 3.14<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u8ff0\u4ee3\u7801\u4e2d\uff0c<code>x<\/code> \u662f\u4e00\u4e2a\u6574\u578b\u53d8\u91cf\uff0c<code>y<\/code> \u662f\u4e00\u4e2a\u5b57\u7b26\u4e32\u53d8\u91cf\uff0c<code>z<\/code> \u662f\u4e00\u4e2a\u6d6e\u70b9\u578b\u53d8\u91cf\u3002\u8d4b\u503c\u64cd\u4f5c\u5c06\u53f3\u8fb9\u7684\u503c\u8d4b\u7ed9\u5de6\u8fb9\u7684\u53d8\u91cf\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u53d8\u91cf\u7684\u8fd0\u7b97<\/h3>\n<\/p>\n<p><p>\u53d8\u91cf\u53ef\u4ee5\u53c2\u4e0e\u5404\u79cd\u8fd0\u7b97\uff0c\u5305\u62ec\u7b97\u672f\u8fd0\u7b97\u3001\u6bd4\u8f83\u8fd0\u7b97\u3001\u903b\u8f91\u8fd0\u7b97\u7b49\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u7b97\u672f\u8fd0\u7b97<\/p>\n<p>a = 5<\/p>\n<p>b = 3<\/p>\n<p>sum = a + b<\/p>\n<p>product = a * b<\/p>\n<h2><strong>\u6bd4\u8f83\u8fd0\u7b97<\/strong><\/h2>\n<p>is_equal = (a == b)<\/p>\n<p>is_greater = (a &gt; b)<\/p>\n<h2><strong>\u903b\u8f91\u8fd0\u7b97<\/strong><\/h2>\n<p>c = True<\/p>\n<p>d = False<\/p>\n<p>logical_and = c and d<\/p>\n<p>logical_or = c or d<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u7b97\u672f\u8fd0\u7b97\u7b26\u5305\u62ec\u52a0\u6cd5\uff08+\uff09\u3001\u51cf\u6cd5\uff08-\uff09\u3001\u4e58\u6cd5\uff08*\uff09\u3001\u9664\u6cd5\uff08\/\uff09\u7b49\u3002\u6bd4\u8f83\u8fd0\u7b97\u7b26\u5305\u62ec\u7b49\u4e8e\uff08==\uff09\u3001\u4e0d\u7b49\u4e8e\uff08!=\uff09\u3001\u5927\u4e8e\uff08&gt;\uff09\u3001\u5c0f\u4e8e\uff08&lt;\uff09\u7b49\u3002\u903b\u8f91\u8fd0\u7b97\u7b26\u5305\u62ec\u4e0e\uff08and\uff09\u3001\u6216\uff08or\uff09\u3001\u975e\uff08not\uff09\u7b49\u3002<\/strong><\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u51fd\u6570\u8c03\u7528<\/h3>\n<\/p>\n<p><p>Python\u4e2d\uff0c\u53d8\u91cf\u8fd8\u53ef\u4ee5\u4f5c\u4e3a\u51fd\u6570\u7684\u53c2\u6570\u8fdb\u884c\u4f20\u9012\uff0c\u4ece\u800c\u5b9e\u73b0\u66f4\u590d\u6742\u7684\u64cd\u4f5c\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def add_numbers(a, b):<\/p>\n<p>    return a + b<\/p>\n<p>result = add_numbers(10, 5)<\/p>\n<p>print(result)  # \u8f93\u51fa 15<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u8ff0\u4ee3\u7801\u4e2d\uff0c<code>add_numbers<\/code> \u51fd\u6570\u63a5\u53d7\u4e24\u4e2a\u53c2\u6570 <code>a<\/code> \u548c <code>b<\/code>\uff0c\u5e76\u8fd4\u56de\u5b83\u4eec\u7684\u548c\u3002\u6211\u4eec\u53ef\u4ee5\u5c06\u53d8\u91cf <code>10<\/code> \u548c <code>5<\/code> \u4f20\u9012\u7ed9\u8fd9\u4e2a\u51fd\u6570\uff0c\u5e76\u5c06\u8fd4\u56de\u503c\u8d4b\u7ed9\u53d8\u91cf <code>result<\/code>\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u53d8\u91cf\u7c7b\u578b\u8f6c\u6362<\/h3>\n<\/p>\n<p><p>\u6709\u65f6\u5019\uff0c\u6211\u4eec\u53ef\u80fd\u9700\u8981\u5728\u4e0d\u540c\u7c7b\u578b\u7684\u53d8\u91cf\u4e4b\u95f4\u8fdb\u884c\u8f6c\u6362\u3002Python\u63d0\u4f9b\u4e86\u4e00\u4e9b\u5185\u7f6e\u51fd\u6570\u6765\u5b9e\u73b0\u8fd9\u4e9b\u8f6c\u6362\uff0c\u4f8b\u5982 <code>int()<\/code>\u3001<code>float()<\/code>\u3001<code>str()<\/code> \u7b49\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">num_str = &quot;123&quot;<\/p>\n<p>num_int = int(num_str)  # \u5c06\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u6574\u6570<\/p>\n<p>num_float = float(num_str)  # \u5c06\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u6d6e\u70b9\u6570<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e94\u3001\u5b57\u7b26\u4e32\u64cd\u4f5c<\/h3>\n<\/p>\n<p><p>Python\u4e2d\uff0c\u5b57\u7b26\u4e32\u662f\u975e\u5e38\u5e38\u7528\u7684\u6570\u636e\u7c7b\u578b\uff0c\u652f\u6301\u591a\u79cd\u64cd\u4f5c\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">str1 = &quot;Hello&quot;<\/p>\n<p>str2 = &quot;World&quot;<\/p>\n<p>concatenated = str1 + &quot; &quot; + str2  # \u5b57\u7b26\u4e32\u8fde\u63a5<\/p>\n<p>uppercase = str1.upper()  # \u8f6c\u6362\u4e3a\u5927\u5199<\/p>\n<p>substring = str1[1:4]  # \u5b50\u5b57\u7b26\u4e32<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u516d\u3001\u5217\u8868\u64cd\u4f5c<\/h3>\n<\/p>\n<p><p>Python\u4e2d\u7684\u5217\u8868\u662f\u53ef\u4ee5\u5305\u542b\u591a\u4e2a\u503c\u7684\u5e8f\u5217\uff0c\u652f\u6301\u591a\u79cd\u64cd\u4f5c\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">my_list = [1, 2, 3, 4, 5]<\/p>\n<p>my_list.append(6)  # \u6dfb\u52a0\u5143\u7d20<\/p>\n<p>my_list.remove(2)  # \u79fb\u9664\u5143\u7d20<\/p>\n<p>length = len(my_list)  # \u83b7\u53d6\u5217\u8868\u957f\u5ea6<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e03\u3001\u5b57\u5178\u64cd\u4f5c<\/h3>\n<\/p>\n<p><p>\u5b57\u5178\u662f\u4e00\u79cd\u952e\u503c\u5bf9\u6570\u636e\u7ed3\u6784\uff0c\u5728Python\u4e2d\u975e\u5e38\u5e38\u7528\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">my_dict = {&quot;name&quot;: &quot;Alice&quot;, &quot;age&quot;: 25}<\/p>\n<p>my_dict[&quot;city&quot;] = &quot;New York&quot;  # \u6dfb\u52a0\u65b0\u7684\u952e\u503c\u5bf9<\/p>\n<p>age = my_dict[&quot;age&quot;]  # \u83b7\u53d6\u503c<\/p>\n<p>del my_dict[&quot;age&quot;]  # \u5220\u9664\u952e\u503c\u5bf9<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u516b\u3001\u53d8\u91cf\u7684\u4f5c\u7528\u57df<\/h3>\n<\/p>\n<p><p>Python\u4e2d\u7684\u53d8\u91cf\u4f5c\u7528\u57df\u51b3\u5b9a\u4e86\u53d8\u91cf\u7684\u53ef\u8bbf\u95ee\u6027\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def my_function():<\/p>\n<p>    local_var = 10  # \u5c40\u90e8\u53d8\u91cf<\/p>\n<p>    print(local_var)<\/p>\n<p>global_var = 20  # \u5168\u5c40\u53d8\u91cf<\/p>\n<p>my_function()<\/p>\n<p>print(global_var)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u8ff0\u4ee3\u7801\u4e2d\uff0c<code>local_var<\/code> \u662f\u5c40\u90e8\u53d8\u91cf\uff0c\u53ea\u80fd\u5728\u51fd\u6570 <code>my_function<\/code> \u5185\u90e8\u8bbf\u95ee\uff0c\u800c <code>global_var<\/code> \u662f\u5168\u5c40\u53d8\u91cf\uff0c\u53ef\u4ee5\u5728\u6574\u4e2a\u811a\u672c\u4e2d\u8bbf\u95ee\u3002<\/p>\n<\/p>\n<p><h3>\u4e5d\u3001\u53d8\u91cf\u547d\u540d\u89c4\u8303<\/h3>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u53d8\u91cf\u547d\u540d\u5e94\u8be5\u9075\u5faa\u4e00\u5b9a\u7684\u89c4\u8303\uff0c\u4ee5\u63d0\u9ad8\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<ol>\n<li>\u53d8\u91cf\u540d\u5e94\u4ee5\u5b57\u6bcd\u6216\u4e0b\u5212\u7ebf\u5f00\u5934\u3002<\/li>\n<li>\u53d8\u91cf\u540d\u5e94\u7531\u5b57\u6bcd\u3001\u6570\u5b57\u548c\u4e0b\u5212\u7ebf\u7ec4\u6210\u3002<\/li>\n<li>\u53d8\u91cf\u540d\u5e94\u7b80\u6d01\u660e\u4e86\uff0c\u80fd\u53cd\u6620\u53d8\u91cf\u7684\u7528\u9014\u3002<\/li>\n<li>\u4f7f\u7528\u9a7c\u5cf0\u547d\u540d\u6cd5\uff08camelCase\uff09\u6216\u4e0b\u5212\u7ebf\u547d\u540d\u6cd5\uff08snake_case\uff09\u3002<\/li>\n<\/ol>\n<p><h3>\u5341\u3001\u5e38\u89c1\u9519\u8bef\u548c\u8c03\u8bd5<\/h3>\n<\/p>\n<p><p>\u5728\u4f7f\u7528\u53d8\u91cf\u65f6\uff0c\u53ef\u80fd\u4f1a\u9047\u5230\u4e00\u4e9b\u5e38\u89c1\u7684\u9519\u8bef\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<ol>\n<li><strong>\u672a\u5b9a\u4e49\u53d8\u91cf<\/strong>\uff1a\u5c1d\u8bd5\u4f7f\u7528\u672a\u5b9a\u4e49\u7684\u53d8\u91cf\u4f1a\u5bfc\u81f4 <code>NameError<\/code>\u3002<\/li>\n<li><strong>\u7c7b\u578b\u9519\u8bef<\/strong>\uff1a\u5c1d\u8bd5\u5bf9\u4e0d\u517c\u5bb9\u7684\u7c7b\u578b\u8fdb\u884c\u64cd\u4f5c\u4f1a\u5bfc\u81f4 <code>TypeError<\/code>\u3002<\/li>\n<li><strong>\u7d22\u5f15\u9519\u8bef<\/strong>\uff1a\u5c1d\u8bd5\u8bbf\u95ee\u8d85\u51fa\u8303\u56f4\u7684\u5217\u8868\u7d22\u5f15\u4f1a\u5bfc\u81f4 <code>IndexError<\/code>\u3002<\/li>\n<\/ol>\n<p><p>\u8c03\u8bd5\u8fd9\u4e9b\u9519\u8bef\u7684\u5e38\u7528\u65b9\u6cd5\u5305\u62ec\u4f7f\u7528 <code>print<\/code> \u51fd\u6570\u8f93\u51fa\u53d8\u91cf\u503c\u3001\u4f7f\u7528\u8c03\u8bd5\u5de5\u5177\uff08\u5982 <code>pdb<\/code>\uff09\u7b49\u3002<\/p>\n<\/p>\n<p><h3>\u603b\u7ed3<\/h3>\n<\/p>\n<p><p><strong>\u7528Python\u8fd0\u884c\u4e00\u4e2a\u53d8\u91cf\u7684\u65b9\u6cd5\u4e3b\u8981\u5305\u62ec\u521b\u5efa\u548c\u8d4b\u503c\u53d8\u91cf\u3001\u8fdb\u884c\u53d8\u91cf\u8fd0\u7b97\u3001\u8c03\u7528\u51fd\u6570\u3001\u8fdb\u884c\u7c7b\u578b\u8f6c\u6362\u3001\u5b57\u7b26\u4e32\u64cd\u4f5c\u3001\u5217\u8868\u548c\u5b57\u5178\u64cd\u4f5c\u3001\u7406\u89e3\u53d8\u91cf\u4f5c\u7528\u57df\u3001\u9075\u5faa\u547d\u540d\u89c4\u8303\u3001\u4ee5\u53ca\u5904\u7406\u5e38\u89c1\u9519\u8bef\u548c\u8c03\u8bd5\u3002<\/strong> \u901a\u8fc7\u638c\u63e1\u8fd9\u4e9b\u65b9\u6cd5\uff0c\u60a8\u53ef\u4ee5\u5728Python\u4e2d\u7075\u6d3b\u5730\u4f7f\u7528\u53d8\u91cf\uff0c\u4ece\u800c\u5b9e\u73b0\u5404\u79cd\u7f16\u7a0b\u4efb\u52a1\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u52a8\u6001\u6267\u884c\u4e00\u4e2a\u5b57\u7b26\u4e32\u53d8\u91cf\u7684\u4ee3\u7801\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u5185\u7f6e\u7684<code>exec()<\/code>\u51fd\u6570\u6765\u6267\u884c\u5b57\u7b26\u4e32\u5f62\u5f0f\u7684\u4ee3\u7801\u3002\u4f60\u53ea\u9700\u8981\u5c06\u5b57\u7b26\u4e32\u4f5c\u4e3a\u53c2\u6570\u4f20\u9012\u7ed9<code>exec()<\/code>\uff0cPython\u4f1a\u6267\u884c\u5176\u4e2d\u7684\u4ee3\u7801\u3002\u4f8b\u5982\uff1a  <\/p>\n<pre><code class=\"language-python\">code = &quot;x = 5\\ny = 10\\nresult = x + y&quot;\nexec(code)\nprint(result)  # \u8f93\u51fa15\n<\/code><\/pre>\n<p>\u8bf7\u6ce8\u610f\uff0c\u4f7f\u7528<code>exec()<\/code>\u65f6\u9700\u8c28\u614e\uff0c\u56e0\u4e3a\u5b83\u4f1a\u6267\u884c\u4efb\u4f55\u4ee3\u7801\uff0c\u8fd9\u53ef\u80fd\u4f1a\u5e26\u6765\u5b89\u5168\u98ce\u9669\u3002<\/p>\n<p><strong>Python\u4e2d\u5982\u4f55\u5c06\u53d8\u91cf\u4f5c\u4e3a\u51fd\u6570\u53c2\u6570\u4f20\u9012\u5e76\u6267\u884c\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u5c06\u53d8\u91cf\u4f5c\u4e3a\u53c2\u6570\u4f20\u9012\u7ed9\u51fd\u6570\uff0c\u4ece\u800c\u5b9e\u73b0\u7075\u6d3b\u7684\u6267\u884c\u3002\u4f8b\u5982\uff1a<\/p>\n<pre><code class=\"language-python\">def calculate(a, b):\n    return a + b\n\nresult = calculate(5, 10)\nprint(result)  # \u8f93\u51fa15\n<\/code><\/pre>\n<p>\u8fd9\u79cd\u65b9\u5f0f\u53ef\u4ee5\u8ba9\u4f60\u5728\u8c03\u7528\u51fd\u6570\u65f6\u4f7f\u7528\u4e0d\u540c\u7684\u53d8\u91cf\u503c\uff0c\u63d0\u5347\u4ee3\u7801\u7684\u590d\u7528\u6027\u3002<\/p>\n<p><strong>\u5728Python\u4e2d\uff0c\u5982\u4f55\u901a\u8fc7\u53d8\u91cf\u540d\u8bbf\u95ee\u5b57\u5178\u4e2d\u7684\u503c\uff1f<\/strong><br \/>\u5982\u679c\u4f60\u60f3\u901a\u8fc7\u53d8\u91cf\u540d\u8bbf\u95ee\u5b57\u5178\u4e2d\u7684\u503c\uff0c\u53ef\u4ee5\u4f7f\u7528\u5b57\u5178\u7684\u952e\u6765\u5b9e\u73b0\u3002\u4f8b\u5982\uff1a<\/p>\n<pre><code class=\"language-python\">my_dict = {&#39;a&#39;: 1, &#39;b&#39;: 2, &#39;c&#39;: 3}\nkey = &#39;b&#39;\nvalue = my_dict[key]\nprint(value)  # \u8f93\u51fa2\n<\/code><\/pre>\n<p>\u8fd9\u79cd\u65b9\u6cd5\u4f7f\u5f97\u5728\u9700\u8981\u52a8\u6001\u8bbf\u95ee\u5b57\u5178\u5143\u7d20\u65f6\u53d8\u5f97\u975e\u5e38\u65b9\u4fbf\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u7528Python\u8fd0\u884c\u4e00\u4e2a\u53d8\u91cf\u7684\u65b9\u6cd5\u6709\u5f88\u591a\u79cd\uff0c\u4e3b\u8981\u5305\u62ec\u8d4b\u503c\u3001\u8fd0\u7b97\u3001\u51fd\u6570\u8c03\u7528\u7b49\u3002 \u4f8b\u5982\uff0c\u53d8\u91cf\u53ef\u4ee5\u901a\u8fc7\u7b80\u5355\u7684\u8d4b\u503c\u8bed\u53e5\u6765 [&hellip;]","protected":false},"author":3,"featured_media":1072977,"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\/1072969"}],"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=1072969"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1072969\/revisions"}],"predecessor-version":[{"id":1072978,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1072969\/revisions\/1072978"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1072977"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1072969"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1072969"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1072969"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}