{"id":1027804,"date":"2024-12-31T10:54:06","date_gmt":"2024-12-31T02:54:06","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1027804.html"},"modified":"2024-12-31T10:54:08","modified_gmt":"2024-12-31T02:54:08","slug":"%e5%a6%82%e4%bd%95%e7%94%a8python%e5%86%99%e4%b8%80%e4%b8%aa%e5%87%bd%e6%95%b0","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1027804.html","title":{"rendered":"\u5982\u4f55\u7528python\u5199\u4e00\u4e2a\u51fd\u6570"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-docs.pingcode.com\/wp-content\/uploads\/2024\/12\/ffea14d4-9ffd-47c2-8ca5-5431a179f52a.webp?x-oss-process=image\/auto-orient,1\/format,webp\" alt=\"\u5982\u4f55\u7528python\u5199\u4e00\u4e2a\u51fd\u6570\" \/><\/p>\n<p><p> <strong>\u7528Python\u5199\u4e00\u4e2a\u51fd\u6570\u7684\u65b9\u6cd5\u5305\u62ec\u4ee5\u4e0b\u6b65\u9aa4\uff1a\u5b9a\u4e49\u51fd\u6570\u3001\u6dfb\u52a0\u53c2\u6570\u3001\u5b9e\u73b0\u51fd\u6570\u903b\u8f91\u3001\u4f7f\u7528return\u8bed\u53e5\u8fd4\u56de\u7ed3\u679c\u3002<\/strong> \u5176\u4e2d\uff0c\u5b9a\u4e49\u51fd\u6570\u662f\u6700\u5173\u952e\u7684\u4e00\u6b65\uff0c\u4f7f\u7528def\u5173\u952e\u8bcd\u6765\u5b9a\u4e49\u51fd\u6570\u540d\u79f0\u548c\u53c2\u6570\u5217\u8868\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u5728Python\u4e2d\u7f16\u5199\u4e00\u4e2a\u51fd\u6570\uff0c\u5e76\u4e3a\u6bcf\u4e2a\u6b65\u9aa4\u63d0\u4f9b\u793a\u4f8b\u4ee3\u7801\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u5b9a\u4e49\u51fd\u6570<\/h3>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u5b9a\u4e49\u51fd\u6570\u4f7f\u7528 <code>def<\/code> \u5173\u952e\u5b57\u3002\u51fd\u6570\u7684\u540d\u79f0\u5e94\u5f53\u5177\u5907\u63cf\u8ff0\u6027\uff0c\u80fd\u591f\u660e\u786e\u8868\u793a\u8be5\u51fd\u6570\u7684\u529f\u80fd\u3002\u51fd\u6570\u540d\u79f0\u540e\u7d27\u8ddf\u4e00\u5bf9\u5706\u62ec\u53f7\uff0c\u62ec\u53f7\u5185\u662f\u51fd\u6570\u7684\u53c2\u6570\u5217\u8868\uff08\u5982\u679c\u6709\u53c2\u6570\u7684\u8bdd\uff09\uff0c\u6700\u540e\u4ee5\u5192\u53f7\u7ed3\u5c3e\u3002<\/p>\n<\/p>\n<p><p>\u4f8b\u5982\uff0c\u6211\u4eec\u8981\u5b9a\u4e49\u4e00\u4e2a\u7b80\u5355\u7684\u51fd\u6570\u6765\u8ba1\u7b97\u4e24\u4e2a\u6570\u5b57\u7684\u548c\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><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>add_numbers<\/code> \u662f\u51fd\u6570\u7684\u540d\u79f0\uff0c<code>a<\/code> \u548c <code>b<\/code> \u662f\u51fd\u6570\u7684\u53c2\u6570\uff0c<code>return<\/code> \u8bed\u53e5\u7528\u4e8e\u8fd4\u56de\u8ba1\u7b97\u7ed3\u679c\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u6dfb\u52a0\u53c2\u6570<\/h3>\n<\/p>\n<p><p>\u51fd\u6570\u53c2\u6570\u662f\u5728\u51fd\u6570\u540d\u79f0\u540e\u9762\u7684\u5706\u62ec\u53f7\u5185\u5b9a\u4e49\u7684\u3002\u53c2\u6570\u662f\u51fd\u6570\u6240\u9700\u7684\u8f93\u5165\u6570\u636e\u3002\u51fd\u6570\u53ef\u4ee5\u6709\u96f6\u4e2a\u3001\u4e00\u4e2a\u6216\u591a\u4e2a\u53c2\u6570\u3002\u53c2\u6570\u5728\u51fd\u6570\u5185\u90e8\u88ab\u5f53\u4f5c\u53d8\u91cf\u4f7f\u7528\u3002<\/p>\n<\/p>\n<p><p>\u4f8b\u5982\uff0c\u4e0b\u9762\u662f\u4e00\u4e2a\u5e26\u6709\u4e00\u4e2a\u53c2\u6570\u7684\u51fd\u6570\uff0c\u8be5\u51fd\u6570\u8ba1\u7b97\u4e00\u4e2a\u6570\u5b57\u7684\u5e73\u65b9\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def square_number(x):<\/p>\n<p>    return x * x<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e09\u3001\u5b9e\u73b0\u51fd\u6570\u903b\u8f91<\/h3>\n<\/p>\n<p><p>\u51fd\u6570\u4e3b\u4f53\u662f\u5305\u542b\u5728\u51fd\u6570\u5b9a\u4e49\u5185\u7f29\u8fdb\u7684\u6240\u6709\u8bed\u53e5\uff0c\u8fd9\u4e9b\u8bed\u53e5\u5b9a\u4e49\u4e86\u51fd\u6570\u7684\u884c\u4e3a\u3002\u51fd\u6570\u4e3b\u4f53\u4e2d\u53ef\u4ee5\u5305\u542b\u903b\u8f91\u5224\u65ad\u3001\u5faa\u73af\u3001\u8c03\u7528\u5176\u4ed6\u51fd\u6570\u7b49\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<p><p>\u4e0b\u9762\u662f\u4e00\u4e2a\u793a\u4f8b\u51fd\u6570\uff0c\u8be5\u51fd\u6570\u68c0\u67e5\u4e00\u4e2a\u6570\u5b57\u662f\u5426\u4e3a\u5076\u6570\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def is_even(number):<\/p>\n<p>    if number % 2 == 0:<\/p>\n<p>        return True<\/p>\n<p>    else:<\/p>\n<p>        return False<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001\u4f7f\u7528return\u8bed\u53e5\u8fd4\u56de\u7ed3\u679c<\/h3>\n<\/p>\n<p><p><code>return<\/code> \u8bed\u53e5\u7528\u4e8e\u5c06\u51fd\u6570\u7684\u7ed3\u679c\u8fd4\u56de\u7ed9\u8c03\u7528\u65b9\u3002\u4e00\u4e2a\u51fd\u6570\u53ef\u4ee5\u6709\u96f6\u4e2a\u6216\u591a\u4e2a <code>return<\/code> \u8bed\u53e5\u3002\u5728\u6ca1\u6709 <code>return<\/code> \u8bed\u53e5\u7684\u60c5\u51b5\u4e0b\uff0c\u51fd\u6570\u9ed8\u8ba4\u8fd4\u56de <code>None<\/code>\u3002<\/p>\n<\/p>\n<p><p>\u4f8b\u5982\uff0c\u4e0b\u9762\u662f\u4e00\u4e2a\u51fd\u6570\uff0c\u8be5\u51fd\u6570\u5c06\u4e24\u4e2a\u5b57\u7b26\u4e32\u8fde\u63a5\u8d77\u6765\u5e76\u8fd4\u56de\u7ed3\u679c\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def concatenate_strings(str1, str2):<\/p>\n<p>    return str1 + str2<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e94\u3001\u4f7f\u7528\u5c0f\u6807\u9898\u5c06\u6587\u7ae0\u8fdb\u884c\u5206\u6bb5<\/h3>\n<\/p>\n<p><p>\u4e0b\u9762\u662f\u4e00\u4e2a\u66f4\u590d\u6742\u7684\u793a\u4f8b\uff0c\u5c55\u793a\u4e86\u5982\u4f55\u4f7f\u7528Python\u7f16\u5199\u4e00\u4e2a\u51fd\u6570\u6765\u8ba1\u7b97\u9636\u4e58\uff1a<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u5b9a\u4e49\u9636\u4e58\u51fd\u6570<\/h3>\n<\/p>\n<p><pre><code class=\"language-python\">def factorial(n):<\/p>\n<p>    if n == 0:<\/p>\n<p>        return 1<\/p>\n<p>    else:<\/p>\n<p>        return n * factorial(n-1)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>factorial<\/code> \u51fd\u6570\u9012\u5f52\u5730\u8ba1\u7b97 <code>n<\/code> \u7684\u9636\u4e58\u3002\u5982\u679c <code>n<\/code> \u7b49\u4e8e0\uff0c\u51fd\u6570\u8fd4\u56de1\uff0c\u5426\u5219\u8fd4\u56de <code>n<\/code> \u4e58\u4ee5 <code>factorial(n-1)<\/code> \u7684\u7ed3\u679c\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u6dfb\u52a0\u8f93\u5165\u9a8c\u8bc1<\/h3>\n<\/p>\n<p><p>\u5728\u7f16\u5199\u51fd\u6570\u65f6\uff0c\u6dfb\u52a0\u8f93\u5165\u9a8c\u8bc1\u662f\u4e00\u4e2a\u826f\u597d\u7684\u7f16\u7a0b\u4e60\u60ef\uff0c\u53ef\u4ee5\u9632\u6b62\u51fd\u6570\u63a5\u6536\u65e0\u6548\u7684\u8f93\u5165\u3002\u4ee5\u4e0b\u662f\u5bf9 <code>factorial<\/code> \u51fd\u6570\u6dfb\u52a0\u8f93\u5165\u9a8c\u8bc1\u7684\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def factorial(n):<\/p>\n<p>    if not isinstance(n, int) or n &lt; 0:<\/p>\n<p>        r<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>se ValueError(&quot;Input must be a non-negative integer.&quot;)<\/p>\n<p>    if n == 0:<\/p>\n<p>        return 1<\/p>\n<p>    else:<\/p>\n<p>        return n * factorial(n-1)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e09\u3001\u4f18\u5316\u51fd\u6570\u6027\u80fd<\/h3>\n<\/p>\n<p><p>\u9012\u5f52\u51fd\u6570\u5728\u8ba1\u7b97\u8f83\u5927\u503c\u65f6\u53ef\u80fd\u4f1a\u5bfc\u81f4\u6808\u6ea2\u51fa\u3002\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u8fed\u4ee3\u65b9\u6cd5\u6765\u4f18\u5316 <code>factorial<\/code> \u51fd\u6570\u7684\u6027\u80fd\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def factorial(n):<\/p>\n<p>    if not isinstance(n, int) or n &lt; 0:<\/p>\n<p>        raise ValueError(&quot;Input must be a non-negative integer.&quot;)<\/p>\n<p>    result = 1<\/p>\n<p>    for i in range(1, n + 1):<\/p>\n<p>        result *= i<\/p>\n<p>    return result<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001\u6dfb\u52a0\u6587\u6863\u5b57\u7b26\u4e32<\/h3>\n<\/p>\n<p><p>\u6587\u6863\u5b57\u7b26\u4e32\uff08docstring\uff09\u662f\u51fd\u6570\u7684\u6587\u6863\u8bf4\u660e\uff0c\u4f4d\u4e8e\u51fd\u6570\u5b9a\u4e49\u4e0b\u7684\u7b2c\u4e00\u884c\u3002\u5b83\u4f7f\u7528\u4e09\u91cd\u5f15\u53f7\uff08<code>&quot;&quot;&quot;<\/code>\uff09\u5305\u56f4\u3002\u6587\u6863\u5b57\u7b26\u4e32\u53ef\u4ee5\u63cf\u8ff0\u51fd\u6570\u7684\u529f\u80fd\u3001\u53c2\u6570\u548c\u8fd4\u56de\u503c\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def factorial(n):<\/p>\n<p>    &quot;&quot;&quot;<\/p>\n<p>    Calculate the factorial of a non-negative integer.<\/p>\n<p>    Parameters:<\/p>\n<p>    n (int): A non-negative integer whose factorial is to be calculated.<\/p>\n<p>    Returns:<\/p>\n<p>    int: The factorial of the input integer.<\/p>\n<p>    Raises:<\/p>\n<p>    ValueError: If the input is not a non-negative integer.<\/p>\n<p>    &quot;&quot;&quot;<\/p>\n<p>    if not isinstance(n, int) or n &lt; 0:<\/p>\n<p>        raise ValueError(&quot;Input must be a non-negative integer.&quot;)<\/p>\n<p>    result = 1<\/p>\n<p>    for i in range(1, n + 1):<\/p>\n<p>        result *= i<\/p>\n<p>    return result<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e94\u3001\u6d4b\u8bd5\u51fd\u6570<\/h3>\n<\/p>\n<p><p>\u7f16\u5199\u6d4b\u8bd5\u7528\u4f8b\u662f\u786e\u4fdd\u51fd\u6570\u6b63\u5e38\u5de5\u4f5c\u7684\u5173\u952e\u6b65\u9aa4\u3002\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528 <code>assert<\/code> \u8bed\u53e5\u6765\u6d4b\u8bd5 <code>factorial<\/code> \u51fd\u6570\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def test_factorial():<\/p>\n<p>    assert factorial(0) == 1<\/p>\n<p>    assert factorial(1) == 1<\/p>\n<p>    assert factorial(5) == 120<\/p>\n<p>    assert factorial(10) == 3628800<\/p>\n<p>    try:<\/p>\n<p>        factorial(-1)<\/p>\n<p>    except ValueError as e:<\/p>\n<p>        assert str(e) == &quot;Input must be a non-negative integer.&quot;<\/p>\n<p>    try:<\/p>\n<p>        factorial(3.5)<\/p>\n<p>    except ValueError as e:<\/p>\n<p>        assert str(e) == &quot;Input must be a non-negative integer.&quot;<\/p>\n<p>test_factorial()<\/p>\n<p>print(&quot;All tests passed.&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u7f16\u5199\u6d4b\u8bd5\u7528\u4f8b\uff0c\u6211\u4eec\u53ef\u4ee5\u786e\u4fdd <code>factorial<\/code> \u51fd\u6570\u5728\u5404\u79cd\u8f93\u5165\u60c5\u51b5\u4e0b\u90fd\u80fd\u6b63\u786e\u5de5\u4f5c\u3002<\/p>\n<\/p>\n<p><h3>\u516d\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4\uff0c\u6211\u4eec\u8be6\u7ec6\u4ecb\u7ecd\u4e86\u5982\u4f55\u5728Python\u4e2d\u7f16\u5199\u4e00\u4e2a\u51fd\u6570\uff0c\u5305\u62ec\u5b9a\u4e49\u51fd\u6570\u3001\u6dfb\u52a0\u53c2\u6570\u3001\u5b9e\u73b0\u51fd\u6570\u903b\u8f91\u3001\u4f7f\u7528 <code>return<\/code> \u8bed\u53e5\u8fd4\u56de\u7ed3\u679c\u3001\u6dfb\u52a0\u8f93\u5165\u9a8c\u8bc1\u3001\u4f18\u5316\u51fd\u6570\u6027\u80fd\u3001\u6dfb\u52a0\u6587\u6863\u5b57\u7b26\u4e32\u548c\u6d4b\u8bd5\u51fd\u6570\u3002\u5e0c\u671b\u8fd9\u4e9b\u5185\u5bb9\u80fd\u591f\u5e2e\u52a9\u60a8\u66f4\u597d\u5730\u7406\u89e3\u548c\u638c\u63e1Python\u51fd\u6570\u7684\u7f16\u5199\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u5b9a\u4e49\u4e00\u4e2a\u51fd\u6570\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u5b9a\u4e49\u4e00\u4e2a\u51fd\u6570\u53ef\u4ee5\u4f7f\u7528<code>def<\/code>\u5173\u952e\u5b57\uff0c\u540e\u9762\u8ddf\u4e0a\u51fd\u6570\u540d\u548c\u53c2\u6570\u5217\u8868\u3002\u51fd\u6570\u4f53\u9700\u8981\u7f29\u8fdb\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u793a\u4f8b\uff1a  <\/p>\n<pre><code class=\"language-python\">def greet(name):\n    return f&quot;Hello, {name}!&quot;\n<\/code><\/pre>\n<p>\u8c03\u7528\u8fd9\u4e2a\u51fd\u6570\u65f6\uff0c\u53ea\u9700\u4f20\u5165\u4e00\u4e2a\u53c2\u6570\u5373\u53ef\uff1a<code>greet(&quot;Alice&quot;)<\/code>\uff0c\u8fd9\u5c06\u8fd4\u56de\u5b57\u7b26\u4e32<code>&quot;Hello, Alice!&quot;<\/code>\u3002<\/p>\n<p><strong>\u51fd\u6570\u53ef\u4ee5\u63a5\u6536\u591a\u5c11\u4e2a\u53c2\u6570\uff1f<\/strong><br \/>Python\u7684\u51fd\u6570\u53ef\u4ee5\u63a5\u6536\u4efb\u610f\u6570\u91cf\u7684\u53c2\u6570\u3002\u4f60\u53ef\u4ee5\u5b9a\u4e49\u4f4d\u7f6e\u53c2\u6570\u3001\u9ed8\u8ba4\u53c2\u6570\u3001\u53ef\u53d8\u53c2\u6570\uff08\u4f7f\u7528<code>*args<\/code>\uff09\u548c\u5173\u952e\u5b57\u53c2\u6570\uff08\u4f7f\u7528<code>**kwargs<\/code>\uff09\u3002\u4f8b\u5982\uff0c\u4ee5\u4e0b\u51fd\u6570\u80fd\u591f\u63a5\u53d7\u591a\u4e2a\u4f4d\u7f6e\u53c2\u6570\u5e76\u8ba1\u7b97\u5b83\u4eec\u7684\u548c\uff1a  <\/p>\n<pre><code class=\"language-python\">def sum_numbers(*args):\n    return sum(args)\n<\/code><\/pre>\n<p>\u8c03\u7528\u8fd9\u4e2a\u51fd\u6570\u65f6\uff0c\u53ef\u4ee5\u4f20\u5165\u4efb\u610f\u6570\u91cf\u7684\u6570\u5b57\uff1a<code>sum_numbers(1, 2, 3)<\/code>\u5c06\u8fd4\u56de6\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728Python\u51fd\u6570\u4e2d\u5904\u7406\u5f02\u5e38\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528<code>try<\/code>\u548c<code>except<\/code>\u5757\u6765\u5904\u7406\u51fd\u6570\u4e2d\u7684\u5f02\u5e38\u3002\u8fd9\u4f7f\u5f97\u51fd\u6570\u5728\u9047\u5230\u9519\u8bef\u65f6\u4e0d\u4f1a\u5d29\u6e83\uff0c\u800c\u662f\u80fd\u591f\u4f18\u96c5\u5730\u5904\u7406\u3002\u793a\u4f8b\u5982\u4e0b\uff1a  <\/p>\n<pre><code class=\"language-python\">def divide(a, b):\n    try:\n        return a \/ b\n    except ZeroDivisionError:\n        return &quot;Error: Cannot divide by zero.&quot;\n<\/code><\/pre>\n<p>\u8c03\u7528<code>divide(10, 0)<\/code>\u5c06\u8fd4\u56de<code>&quot;Error: Cannot divide by zero.&quot;<\/code>\uff0c\u800c\u4e0d\u662f\u629b\u51fa\u5f02\u5e38\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u7528Python\u5199\u4e00\u4e2a\u51fd\u6570\u7684\u65b9\u6cd5\u5305\u62ec\u4ee5\u4e0b\u6b65\u9aa4\uff1a\u5b9a\u4e49\u51fd\u6570\u3001\u6dfb\u52a0\u53c2\u6570\u3001\u5b9e\u73b0\u51fd\u6570\u903b\u8f91\u3001\u4f7f\u7528return\u8bed\u53e5\u8fd4\u56de\u7ed3\u679c\u3002 [&hellip;]","protected":false},"author":3,"featured_media":1027812,"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\/1027804"}],"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=1027804"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1027804\/revisions"}],"predecessor-version":[{"id":1027815,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1027804\/revisions\/1027815"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1027812"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1027804"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1027804"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1027804"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}