{"id":1092148,"date":"2025-01-08T14:18:28","date_gmt":"2025-01-08T06:18:28","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1092148.html"},"modified":"2025-01-08T14:18:30","modified_gmt":"2025-01-08T06:18:30","slug":"python%e5%a6%82%e4%bd%95%e7%ae%97%e6%9c%80%e5%b0%8f%e5%85%ac%e5%80%8d%e6%95%b0-2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1092148.html","title":{"rendered":"python\u5982\u4f55\u7b97\u6700\u5c0f\u516c\u500d\u6570"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24205316\/12bc4764-1a59-4629-a6a1-e36b396db699.webp\" alt=\"python\u5982\u4f55\u7b97\u6700\u5c0f\u516c\u500d\u6570\" \/><\/p>\n<p><p> <strong>Python\u8ba1\u7b97\u6700\u5c0f\u516c\u500d\u6570\u7684\u51e0\u79cd\u65b9\u6cd5<\/strong>\u3001<strong>\u4f7f\u7528\u6b27\u51e0\u91cc\u5f97\u7b97\u6cd5\u6c42\u6700\u5927\u516c\u7ea6\u6570\u518d\u6c42\u6700\u5c0f\u516c\u500d\u6570<\/strong>\u3001<strong>\u4f7f\u7528Python\u6807\u51c6\u5e93math\u6a21\u5757\u4e2d\u7684lcm\u51fd\u6570<\/strong>\u3001<strong>\u901a\u8fc7\u5faa\u73af\u6cd5\u76f4\u63a5\u8ba1\u7b97\u6700\u5c0f\u516c\u500d\u6570<\/strong>\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u4f7f\u7528\u6b27\u51e0\u91cc\u5f97\u7b97\u6cd5\u6c42\u6700\u5927\u516c\u7ea6\u6570\u518d\u6c42\u6700\u5c0f\u516c\u500d\u6570\u7684\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><p>Python\u8ba1\u7b97\u6700\u5c0f\u516c\u500d\u6570\uff08Least Common Multiple\uff0cLCM\uff09\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u5176\u4e2d\u4e00\u79cd\u5e38\u7528\u7684\u65b9\u6cd5\u662f\u5148\u8ba1\u7b97\u4e24\u4e2a\u6570\u7684\u6700\u5927\u516c\u7ea6\u6570\uff08Greatest Common Divisor\uff0cGCD\uff09\uff0c\u7136\u540e\u5229\u7528\u8fd9\u4e2a\u6700\u5927\u516c\u7ea6\u6570\u6765\u8ba1\u7b97\u6700\u5c0f\u516c\u500d\u6570\u3002\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u6b27\u51e0\u91cc\u5f97\u7b97\u6cd5\u6765\u5feb\u901f\u8ba1\u7b97\u6700\u5927\u516c\u7ea6\u6570\uff0c\u518d\u901a\u8fc7\u516c\u5f0f\u6c42\u5f97\u6700\u5c0f\u516c\u500d\u6570\uff1a\u4e24\u4e2a\u6570\u7684\u4e58\u79ef\u9664\u4ee5\u5b83\u4eec\u7684\u6700\u5927\u516c\u7ea6\u6570\u5c31\u662f\u5b83\u4eec\u7684\u6700\u5c0f\u516c\u500d\u6570\u3002<\/p>\n<\/p>\n<p><h2>\u4e00\u3001\u4f7f\u7528\u6b27\u51e0\u91cc\u5f97\u7b97\u6cd5\u6c42\u6700\u5927\u516c\u7ea6\u6570\u518d\u6c42\u6700\u5c0f\u516c\u500d\u6570<\/h2>\n<\/p>\n<p><h3>1\u3001\u6b27\u51e0\u91cc\u5f97\u7b97\u6cd5\u7b80\u4ecb<\/h3>\n<\/p>\n<p><p>\u6b27\u51e0\u91cc\u5f97\u7b97\u6cd5\uff08Euclidean algorithm\uff09\u662f\u4e00\u79cd\u7528\u4e8e\u8ba1\u7b97\u4e24\u4e2a\u6570\u7684\u6700\u5927\u516c\u7ea6\u6570\uff08GCD\uff09\u7684\u9ad8\u6548\u7b97\u6cd5\u3002\u5b83\u57fa\u4e8e\u4ee5\u4e0b\u539f\u7406\uff1a\u4e24\u4e2a\u6b63\u6574\u6570 a \u548c b\uff08a &gt; b\uff09\uff0c\u5b83\u4eec\u7684\u6700\u5927\u516c\u7ea6\u6570\u7b49\u4e8e b \u548c a \u9664\u4ee5 b \u7684\u4f59\u6570 r \u7684\u6700\u5927\u516c\u7ea6\u6570\u3002\u5373\uff1aGCD(a, b) = GCD(b, a % b)\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u4f1a\u4e00\u76f4\u91cd\u590d\uff0c\u76f4\u5230\u4f59\u6570\u4e3a 0\uff0c\u6b64\u65f6\u7684\u975e\u96f6\u9664\u6570\u5c31\u662f\u6700\u5927\u516c\u7ea6\u6570\u3002<\/p>\n<\/p>\n<p><h3>2\u3001\u5b9e\u73b0\u6b27\u51e0\u91cc\u5f97\u7b97\u6cd5\u6c42\u6700\u5927\u516c\u7ea6\u6570<\/h3>\n<\/p>\n<p><p>\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528 Python \u6765\u5b9e\u73b0\u6b27\u51e0\u91cc\u5f97\u7b97\u6cd5\uff0c\u8ba1\u7b97\u4e24\u4e2a\u6570\u7684\u6700\u5927\u516c\u7ea6\u6570\u3002\u4e0b\u9762\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u5b9e\u73b0\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def gcd(a, b):<\/p>\n<p>    while b:<\/p>\n<p>        a, b = b, a % b<\/p>\n<p>    return a<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>3\u3001\u8ba1\u7b97\u6700\u5c0f\u516c\u500d\u6570<\/h3>\n<\/p>\n<p><p>\u6709\u4e86\u6700\u5927\u516c\u7ea6\u6570\u4e4b\u540e\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u516c\u5f0f\u6765\u8ba1\u7b97\u6700\u5c0f\u516c\u500d\u6570\uff1a<\/p>\n<\/p>\n<p><p>[ \\text{LCM}(a, b) = \\frac{|a \\times b|}{\\text{GCD}(a, b)} ]<\/p>\n<\/p>\n<p><p>\u6211\u4eec\u53ef\u4ee5\u5c06\u8fd9\u4e2a\u516c\u5f0f\u5728 Python \u4e2d\u5b9e\u73b0\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def lcm(a, b):<\/p>\n<p>    return abs(a * b) \/\/ gcd(a, b)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>4\u3001\u5b8c\u6574\u793a\u4f8b<\/h3>\n<\/p>\n<p><p>\u4e0b\u9762\u662f\u4e00\u4e2a\u5b8c\u6574\u7684\u793a\u4f8b\uff0c\u6f14\u793a\u5982\u4f55\u4f7f\u7528\u4e0a\u8ff0\u65b9\u6cd5\u8ba1\u7b97\u4e24\u4e2a\u6570\u7684\u6700\u5c0f\u516c\u500d\u6570\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def gcd(a, b):<\/p>\n<p>    while b:<\/p>\n<p>        a, b = b, a % b<\/p>\n<p>    return a<\/p>\n<p>def lcm(a, b):<\/p>\n<p>    return abs(a * b) \/\/ gcd(a, b)<\/p>\n<h2><strong>\u793a\u4f8b<\/strong><\/h2>\n<p>num1 = 12<\/p>\n<p>num2 = 18<\/p>\n<p>print(f&quot;{num1} \u548c {num2} \u7684\u6700\u5c0f\u516c\u500d\u6570\u662f {lcm(num1, num2)}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h2>\u4e8c\u3001\u4f7f\u7528Python\u6807\u51c6\u5e93math\u6a21\u5757\u4e2d\u7684lcm\u51fd\u6570<\/h2>\n<\/p>\n<p><p>Python 3.9 \u53ca\u4ee5\u4e0a\u7248\u672c\u63d0\u4f9b\u4e86\u4e00\u4e2a\u5185\u7f6e\u7684 lcm \u51fd\u6570\uff0c\u53ef\u4ee5\u76f4\u63a5\u7528\u4e8e\u8ba1\u7b97\u4e24\u4e2a\u6570\u7684\u6700\u5c0f\u516c\u500d\u6570\u3002\u8fd9\u4e2a\u51fd\u6570\u4f4d\u4e8e math \u6a21\u5757\u4e2d\uff0c\u4f7f\u7528\u8d77\u6765\u975e\u5e38\u65b9\u4fbf\u3002<\/p>\n<\/p>\n<p><h3>1\u3001\u4f7f\u7528math.lcm\u51fd\u6570<\/h3>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u6211\u4eec\u9700\u8981\u5bfc\u5165 math \u6a21\u5757\uff0c\u7136\u540e\u53ef\u4ee5\u76f4\u63a5\u8c03\u7528 lcm \u51fd\u6570\u6765\u8ba1\u7b97\u6700\u5c0f\u516c\u500d\u6570\u3002\u4e0b\u9762\u662f\u4e00\u4e2a\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import math<\/p>\n<h2><strong>\u793a\u4f8b<\/strong><\/h2>\n<p>num1 = 12<\/p>\n<p>num2 = 18<\/p>\n<p>print(f&quot;{num1} \u548c {num2} \u7684\u6700\u5c0f\u516c\u500d\u6570\u662f {math.lcm(num1, num2)}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>2\u3001\u591a\u4e2a\u6570\u7684\u6700\u5c0f\u516c\u500d\u6570<\/h3>\n<\/p>\n<p><p>math.lcm \u51fd\u6570\u8fd8\u53ef\u4ee5\u7528\u4e8e\u8ba1\u7b97\u591a\u4e2a\u6570\u7684\u6700\u5c0f\u516c\u500d\u6570\u3002\u6211\u4eec\u53ea\u9700\u5c06\u591a\u4e2a\u6570\u4f5c\u4e3a\u53c2\u6570\u4f20\u9012\u7ed9 lcm \u51fd\u6570\u5373\u53ef\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import math<\/p>\n<h2><strong>\u793a\u4f8b<\/strong><\/h2>\n<p>numbers = [12, 18, 24]<\/p>\n<p>print(f&quot;{numbers} \u7684\u6700\u5c0f\u516c\u500d\u6570\u662f {math.lcm(*numbers)}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>3\u3001\u517c\u5bb9\u6027\u6ce8\u610f<\/h3>\n<\/p>\n<p><p>\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0cmath.lcm \u51fd\u6570\u4ec5\u5728 Python 3.9 \u53ca\u4ee5\u4e0a\u7248\u672c\u4e2d\u53ef\u7528\u3002\u5982\u679c\u60a8\u4f7f\u7528\u7684\u662f\u8f83\u4f4e\u7248\u672c\u7684 Python\uff0c\u5219\u9700\u8981\u4f7f\u7528\u5176\u4ed6\u65b9\u6cd5\u6765\u8ba1\u7b97\u6700\u5c0f\u516c\u500d\u6570\u3002<\/p>\n<\/p>\n<p><h2>\u4e09\u3001\u901a\u8fc7\u5faa\u73af\u6cd5\u76f4\u63a5\u8ba1\u7b97\u6700\u5c0f\u516c\u500d\u6570<\/h2>\n<\/p>\n<p><p>\u9664\u4e86\u4f7f\u7528\u6b27\u51e0\u91cc\u5f97\u7b97\u6cd5\u548c Python \u6807\u51c6\u5e93\u4e2d\u7684 lcm \u51fd\u6570\u5916\uff0c\u6211\u4eec\u8fd8\u53ef\u4ee5\u901a\u8fc7\u5faa\u73af\u6cd5\u76f4\u63a5\u8ba1\u7b97\u4e24\u4e2a\u6570\u7684\u6700\u5c0f\u516c\u500d\u6570\u3002\u867d\u7136\u8fd9\u79cd\u65b9\u6cd5\u6548\u7387\u8f83\u4f4e\uff0c\u4f46\u5b83\u76f4\u89c2\u4e14\u6613\u4e8e\u7406\u89e3\u3002<\/p>\n<\/p>\n<p><h3>1\u3001\u5faa\u73af\u6cd5\u7b80\u4ecb<\/h3>\n<\/p>\n<p><p>\u5faa\u73af\u6cd5\u7684\u57fa\u672c\u601d\u60f3\u662f\u4ece\u8f83\u5927\u7684\u6570\u5f00\u59cb\uff0c\u4e0d\u65ad\u589e\u52a0\u5b83\uff0c\u76f4\u5230\u627e\u5230\u4e00\u4e2a\u540c\u65f6\u88ab\u4e24\u4e2a\u6570\u6574\u9664\u7684\u6570\u3002\u8fd9\u5c31\u662f\u8fd9\u4e24\u4e2a\u6570\u7684\u6700\u5c0f\u516c\u500d\u6570\u3002<\/p>\n<\/p>\n<p><h3>2\u3001\u5b9e\u73b0\u5faa\u73af\u6cd5\u8ba1\u7b97\u6700\u5c0f\u516c\u500d\u6570<\/h3>\n<\/p>\n<p><p>\u4e0b\u9762\u662f\u4e00\u4e2a\u4f7f\u7528\u5faa\u73af\u6cd5\u8ba1\u7b97\u4e24\u4e2a\u6570\u6700\u5c0f\u516c\u500d\u6570\u7684\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def lcm(a, b):<\/p>\n<p>    if a &gt; b:<\/p>\n<p>        greater = a<\/p>\n<p>    else:<\/p>\n<p>        greater = b<\/p>\n<p>    while True:<\/p>\n<p>        if greater % a == 0 and greater % b == 0:<\/p>\n<p>            lcm = greater<\/p>\n<p>            break<\/p>\n<p>        greater += 1<\/p>\n<p>    return lcm<\/p>\n<h2><strong>\u793a\u4f8b<\/strong><\/h2>\n<p>num1 = 12<\/p>\n<p>num2 = 18<\/p>\n<p>print(f&quot;{num1} \u548c {num2} \u7684\u6700\u5c0f\u516c\u500d\u6570\u662f {lcm(num1, num2)}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>3\u3001\u4f18\u5316\u5faa\u73af\u6cd5<\/h3>\n<\/p>\n<p><p>\u867d\u7136\u4e0a\u8ff0\u65b9\u6cd5\u53ef\u4ee5\u8ba1\u7b97\u6700\u5c0f\u516c\u500d\u6570\uff0c\u4f46\u5b83\u7684\u6548\u7387\u8f83\u4f4e\u3002\u6211\u4eec\u53ef\u4ee5\u5bf9\u5176\u8fdb\u884c\u4e00\u4e9b\u4f18\u5316\uff0c\u4f8b\u5982\u4ece\u4e24\u4e2a\u6570\u7684\u4e58\u79ef\u5f00\u59cb\uff0c\u9010\u6b65\u51cf\u5c11\u800c\u4e0d\u662f\u589e\u52a0\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def lcm(a, b):<\/p>\n<p>    greater = max(a, b)<\/p>\n<p>    product = a * b<\/p>\n<p>    for i in range(greater, product + 1):<\/p>\n<p>        if i % a == 0 and i % b == 0:<\/p>\n<p>            return i<\/p>\n<h2><strong>\u793a\u4f8b<\/strong><\/h2>\n<p>num1 = 12<\/p>\n<p>num2 = 18<\/p>\n<p>print(f&quot;{num1} \u548c {num2} \u7684\u6700\u5c0f\u516c\u500d\u6570\u662f {lcm(num1, num2)}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h2>\u7ed3\u8bba<\/h2>\n<\/p>\n<p><p>\u5728 Python \u4e2d\u8ba1\u7b97\u6700\u5c0f\u516c\u500d\u6570\u6709\u591a\u79cd\u65b9\u6cd5\uff0c\u5305\u62ec\u4f7f\u7528\u6b27\u51e0\u91cc\u5f97\u7b97\u6cd5\u6c42\u6700\u5927\u516c\u7ea6\u6570\u518d\u6c42\u6700\u5c0f\u516c\u500d\u6570\u3001\u4f7f\u7528 Python \u6807\u51c6\u5e93 math \u6a21\u5757\u4e2d\u7684 lcm \u51fd\u6570\u4ee5\u53ca\u901a\u8fc7\u5faa\u73af\u6cd5\u76f4\u63a5\u8ba1\u7b97\u6700\u5c0f\u516c\u500d\u6570\u3002\u5bf9\u4e8e\u4e0d\u540c\u7684\u5e94\u7528\u573a\u666f\uff0c\u53ef\u4ee5\u9009\u62e9\u9002\u5408\u7684\u65b9\u6cd5\u6765\u8ba1\u7b97\u6700\u5c0f\u516c\u500d\u6570\u3002\u4f7f\u7528\u6b27\u51e0\u91cc\u5f97\u7b97\u6cd5\u548c\u6807\u51c6\u5e93\u51fd\u6570\u662f\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\uff0c\u800c\u5faa\u73af\u6cd5\u867d\u7136\u76f4\u89c2\u4f46\u6548\u7387\u8f83\u4f4e\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u8ba1\u7b97\u4e24\u4e2a\u6570\u5b57\u7684\u6700\u5c0f\u516c\u500d\u6570\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528\u516c\u5f0f\u8ba1\u7b97\u4e24\u4e2a\u6570\u5b57\u7684\u6700\u5c0f\u516c\u500d\u6570\uff08LCM\uff09\uff0c\u8be5\u516c\u5f0f\u4e3a\uff1aLCM(a, b) = abs(a*b) \/ GCD(a, b)\uff0c\u5176\u4e2dGCD\u662f\u6700\u5927\u516c\u7ea6\u6570\u3002Python\u7684\u6807\u51c6\u5e93\u63d0\u4f9b\u4e86<code>math.gcd()<\/code>\u51fd\u6570\uff0c\u53ef\u4ee5\u5e2e\u52a9\u8ba1\u7b97GCD\uff0c\u4ece\u800c\u8f7b\u677e\u5f97\u51faLCM\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u793a\u4f8b\u4ee3\u7801\uff1a  <\/p>\n<pre><code class=\"language-python\">import math\n\ndef lcm(a, b):\n    return abs(a * b) \/\/ math.gcd(a, b)\n\n# \u793a\u4f8b\nresult = lcm(12, 15)\nprint(result)  # \u8f93\u51fa60\n<\/code><\/pre>\n<p><strong>Python\u4e2d\u53ef\u4ee5\u4f7f\u7528\u54ea\u4e9b\u5e93\u6765\u8ba1\u7b97\u6700\u5c0f\u516c\u500d\u6570\uff1f<\/strong><br \/>\u9664\u4e86\u4f7f\u7528\u5185\u7f6e\u7684<code>math<\/code>\u5e93\u6765\u8ba1\u7b97\u6700\u5c0f\u516c\u500d\u6570\u5916\uff0c\u7528\u6237\u8fd8\u53ef\u4ee5\u4f7f\u7528\u7b2c\u4e09\u65b9\u5e93\u5982<code>numpy<\/code>\u548c<code>sympy<\/code>\u3002<code>numpy<\/code>\u63d0\u4f9b\u4e86\u9ad8\u6548\u7684\u6570\u7ec4\u8fd0\u7b97\uff0c\u800c<code>sympy<\/code>\u5219\u4e13\u6ce8\u4e8e\u7b26\u53f7\u6570\u5b66\u8ba1\u7b97\uff0c\u9002\u5408\u66f4\u590d\u6742\u7684\u6570\u5b66\u8fd0\u7b97\u3002\u4f7f\u7528\u8fd9\u4e9b\u5e93\u53ef\u4ee5\u7b80\u5316\u4ee3\u7801\u5e76\u63d0\u9ad8\u8ba1\u7b97\u6548\u7387\u3002<\/p>\n<p><strong>\u5728\u8ba1\u7b97\u591a\u4e2a\u6570\u5b57\u7684\u6700\u5c0f\u516c\u500d\u6570\u65f6\uff0c\u6709\u54ea\u4e9b\u65b9\u6cd5\uff1f<\/strong><br \/>\u5f53\u9700\u8981\u8ba1\u7b97\u591a\u4e2a\u6570\u5b57\u7684\u6700\u5c0f\u516c\u500d\u6570\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7\u9010\u6b65\u8ba1\u7b97\u7684\u65b9\u5f0f\u5b9e\u73b0\u3002\u9996\u5148\u8ba1\u7b97\u524d\u4e24\u4e2a\u6570\u5b57\u7684LCM\uff0c\u7136\u540e\u5c06\u7ed3\u679c\u4e0e\u4e0b\u4e00\u4e2a\u6570\u5b57\u8fdb\u884cLCM\u8ba1\u7b97\uff0c\u76f4\u5230\u6240\u6709\u6570\u5b57\u90fd\u5904\u7406\u5b8c\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8b\uff1a  <\/p>\n<pre><code class=\"language-python\">import math\n\ndef lcm(a, b):\n    return abs(a * b) \/\/ math.gcd(a, b)\n\ndef lcm_multiple(numbers):\n    from functools import reduce\n    return reduce(lcm, numbers)\n\n# \u793a\u4f8b\nresult = lcm_multiple([12, 15, 20])\nprint(result)  # \u8f93\u51fa60\n<\/code><\/pre>\n<p>\u8fd9\u79cd\u65b9\u6cd5\u5728\u5904\u7406\u591a\u4e2a\u6570\u5b57\u65f6\u975e\u5e38\u6709\u6548\uff0c\u786e\u4fdd\u4ee3\u7801\u7684\u7b80\u6d01\u6027\u4e0e\u53ef\u8bfb\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u8ba1\u7b97\u6700\u5c0f\u516c\u500d\u6570\u7684\u51e0\u79cd\u65b9\u6cd5\u3001\u4f7f\u7528\u6b27\u51e0\u91cc\u5f97\u7b97\u6cd5\u6c42\u6700\u5927\u516c\u7ea6\u6570\u518d\u6c42\u6700\u5c0f\u516c\u500d\u6570\u3001\u4f7f\u7528Python\u6807\u51c6\u5e93mat [&hellip;]","protected":false},"author":3,"featured_media":1092155,"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\/1092148"}],"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=1092148"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1092148\/revisions"}],"predecessor-version":[{"id":1092157,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1092148\/revisions\/1092157"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1092155"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1092148"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1092148"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1092148"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}