{"id":1011437,"date":"2024-12-27T11:29:54","date_gmt":"2024-12-27T03:29:54","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1011437.html"},"modified":"2024-12-27T11:29:57","modified_gmt":"2024-12-27T03:29:57","slug":"python%e5%a6%82%e4%bd%95%e7%bc%96%e5%88%b6%e8%87%aa%e5%8a%a8%e8%ae%a1%e7%ae%97","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1011437.html","title":{"rendered":"Python\u5982\u4f55\u7f16\u5236\u81ea\u52a8\u8ba1\u7b97"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25085550\/ddc8895e-a0c2-49c7-9aae-f6efd73292d7.webp\" alt=\"Python\u5982\u4f55\u7f16\u5236\u81ea\u52a8\u8ba1\u7b97\" \/><\/p>\n<p><p> <strong>Python\u7f16\u5236\u81ea\u52a8\u8ba1\u7b97\u7684\u65b9\u6cd5\u5305\u62ec\uff1a\u4f7f\u7528\u5185\u7f6e\u7684\u6570\u5b66\u5e93\u3001\u5229\u7528\u5faa\u73af\u548c\u6761\u4ef6\u5224\u65ad\u6765\u81ea\u52a8\u5316\u8ba1\u7b97\u4efb\u52a1\u3001\u7f16\u5199\u51fd\u6570\u5c01\u88c5\u91cd\u590d\u6027\u8ba1\u7b97\u3001\u4f7f\u7528\u7b2c\u4e09\u65b9\u5e93\u5982NumPy\u548cPandas\u63d0\u9ad8\u8ba1\u7b97\u6548\u7387\u3002\u4ee5\u4e0b\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528Python\u5b9e\u73b0\u8fd9\u4e9b\u81ea\u52a8\u8ba1\u7b97\u529f\u80fd\u3002<\/strong><\/p>\n<\/p>\n<p><p>Python\u4f5c\u4e3a\u4e00\u79cd\u9ad8\u7ea7\u7f16\u7a0b\u8bed\u8a00\uff0c\u4ee5\u5176\u7b80\u5355\u6613\u7528\u548c\u5f3a\u5927\u7684\u529f\u80fd\u88ab\u5e7f\u6cdb\u5e94\u7528\u4e8e\u81ea\u52a8\u8ba1\u7b97\u9886\u57df\u3002Python\u4e0d\u4ec5\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u5185\u7f6e\u51fd\u6570\u548c\u5e93\u6765\u652f\u6301\u57fa\u672c\u7684\u6570\u5b66\u8fd0\u7b97\uff0c\u8fd8\u53ef\u4ee5\u901a\u8fc7\u7f16\u5199\u81ea\u5b9a\u4e49\u51fd\u6570\u548c\u4f7f\u7528\u7b2c\u4e09\u65b9\u5e93\u6765\u89e3\u51b3\u66f4\u590d\u6742\u7684\u8ba1\u7b97\u95ee\u9898\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u5c06\u8be6\u7ec6\u8bb2\u89e3Python\u5728\u81ea\u52a8\u8ba1\u7b97\u4e2d\u7684\u5e94\u7528\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u4f7f\u7528\u5185\u7f6e\u6570\u5b66\u5e93<\/p>\n<\/p>\n<p><p>Python\u63d0\u4f9b\u4e86\u5f3a\u5927\u7684\u5185\u7f6e\u6570\u5b66\u5e93\uff0c\u5982<code>math<\/code>\u548c<code>cmath<\/code>\uff0c\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u8005\u8f7b\u677e\u5b9e\u73b0\u5404\u79cd\u6570\u5b66\u8ba1\u7b97\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>Math\u5e93<\/strong><\/li>\n<\/ol>\n<p><p><code>math<\/code>\u5e93\u63d0\u4f9b\u4e86\u8bb8\u591a\u5e38\u7528\u7684\u6570\u5b66\u51fd\u6570\u548c\u5e38\u91cf\u3002\u4f8b\u5982\uff0c<code>math.sqrt()<\/code>\u53ef\u4ee5\u7528\u6765\u8ba1\u7b97\u5e73\u65b9\u6839\uff0c<code>math.sin()<\/code>\u3001<code>math.cos()<\/code>\u7b49\u7528\u4e8e\u4e09\u89d2\u51fd\u6570\u8ba1\u7b97\u3002\u901a\u8fc7\u8fd9\u4e9b\u51fd\u6570\uff0c\u6211\u4eec\u53ef\u4ee5\u8f7b\u677e\u5b9e\u73b0\u57fa\u7840\u7684\u6570\u5b66\u8fd0\u7b97\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import math<\/p>\n<h2><strong>\u8ba1\u7b97\u5e73\u65b9\u6839<\/strong><\/h2>\n<p>result = math.sqrt(16)<\/p>\n<p>print(&quot;Square root of 16 is:&quot;, result)<\/p>\n<h2><strong>\u8ba1\u7b97\u6b63\u5f26\u503c<\/strong><\/h2>\n<p>angle = math.pi \/ 6<\/p>\n<p>sine_value = math.sin(angle)<\/p>\n<p>print(&quot;Sine of 30 degrees is:&quot;, sine_value)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li><strong>Cmath\u5e93<\/strong><\/li>\n<\/ol>\n<p><p><code>cmath<\/code>\u5e93\u5219\u662f\u7528\u4e8e\u5904\u7406\u590d\u6742\u6570\u7684\u8fd0\u7b97\u3002\u5982\u679c\u4f60\u9700\u8981\u8fdb\u884c\u6d89\u53ca\u5230\u590d\u6570\u7684\u8ba1\u7b97\uff0c<code>cmath<\/code>\u5e93\u5c06\u975e\u5e38\u6709\u7528\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import cmath<\/p>\n<h2><strong>\u8ba1\u7b97\u590d\u6570\u7684\u5e73\u65b9\u6839<\/strong><\/h2>\n<p>complex_number = 1 + 2j<\/p>\n<p>result = cmath.sqrt(complex_number)<\/p>\n<p>print(&quot;Square root of complex number is:&quot;, result)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e8c\u3001\u5229\u7528\u5faa\u73af\u548c\u6761\u4ef6\u5224\u65ad<\/p>\n<\/p>\n<p><p>\u5728\u81ea\u52a8\u8ba1\u7b97\u4e2d\uff0c\u5faa\u73af\u548c\u6761\u4ef6\u5224\u65ad\u662f\u7f16\u7a0b\u7684\u57fa\u7840\u3002\u901a\u8fc7\u8fd9\u4e9b\u63a7\u5236\u7ed3\u6784\uff0cPython\u53ef\u4ee5\u81ea\u52a8\u6267\u884c\u91cd\u590d\u6027\u8ba1\u7b97\uff0c\u5e76\u6839\u636e\u6761\u4ef6\u6267\u884c\u4e0d\u540c\u7684\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u5faa\u73af<\/strong><\/li>\n<\/ol>\n<p><p>\u5faa\u73af\u7ed3\u6784\u5141\u8bb8\u7a0b\u5e8f\u91cd\u590d\u6267\u884c\u67d0\u6bb5\u4ee3\u7801\uff0c\u8fd9\u5bf9\u9700\u8981\u591a\u6b21\u6267\u884c\u76f8\u540c\u8ba1\u7b97\u7684\u4efb\u52a1\u975e\u5e38\u6709\u7528\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u4f7f\u7528for\u5faa\u73af\u8ba1\u7b971\u523010\u7684\u5e73\u65b9<\/p>\n<p>squares = []<\/p>\n<p>for i in range(1, 11):<\/p>\n<p>    squares.append(i2)<\/p>\n<p>print(&quot;Squares from 1 to 10:&quot;, squares)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u6761\u4ef6\u5224\u65ad<\/strong><\/li>\n<\/ol>\n<p><p>\u6761\u4ef6\u5224\u65ad\u5141\u8bb8\u7a0b\u5e8f\u6839\u636e\u7279\u5b9a\u6761\u4ef6\u6267\u884c\u4e0d\u540c\u7684\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u5224\u65ad\u4e00\u4e2a\u6570\u662f\u5947\u6570\u8fd8\u662f\u5076\u6570<\/p>\n<p>number = 5<\/p>\n<p>if number % 2 == 0:<\/p>\n<p>    print(number, &quot;is even&quot;)<\/p>\n<p>else:<\/p>\n<p>    print(number, &quot;is odd&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e09\u3001\u7f16\u5199\u51fd\u6570\u5c01\u88c5\u91cd\u590d\u6027\u8ba1\u7b97<\/p>\n<\/p>\n<p><p>\u901a\u8fc7\u7f16\u5199\u51fd\u6570\uff0c\u6211\u4eec\u53ef\u4ee5\u5c06\u91cd\u590d\u6027\u8ba1\u7b97\u5c01\u88c5\u6210\u4e00\u4e2a\u72ec\u7acb\u7684\u6a21\u5757\uff0c\u63d0\u9ad8\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u548c\u590d\u7528\u6027\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u5b9a\u4e49\u7b80\u5355\u51fd\u6570<\/strong><\/li>\n<\/ol>\n<p><p>\u51fd\u6570\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u5c06\u5e38\u7528\u7684\u8ba1\u7b97\u903b\u8f91\u5c01\u88c5\u8d77\u6765\uff0c\u8fd9\u6837\u53ef\u4ee5\u5728\u9700\u8981\u65f6\u91cd\u590d\u4f7f\u7528\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u5b9a\u4e49\u4e00\u4e2a\u8ba1\u7b97\u9636\u4e58\u7684\u51fd\u6570<\/p>\n<p>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<h2><strong>\u8c03\u7528\u51fd\u6570\u8ba1\u7b97\u9636\u4e58<\/strong><\/h2>\n<p>result = factorial(5)<\/p>\n<p>print(&quot;Factorial of 5 is:&quot;, result)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u9ad8\u7ea7\u51fd\u6570\u5e94\u7528<\/strong><\/li>\n<\/ol>\n<p><p>Python\u8fd8\u652f\u6301\u9ad8\u9636\u51fd\u6570\u548c\u533f\u540d\u51fd\u6570\uff08lambda\uff09\uff0c\u8fd9\u4f7f\u5f97\u6211\u4eec\u53ef\u4ee5\u7f16\u5199\u66f4\u52a0\u7075\u6d3b\u7684\u8ba1\u7b97\u903b\u8f91\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u4f7f\u7528lambda\u51fd\u6570\u8ba1\u7b97\u4e24\u4e2a\u6570\u7684\u548c<\/p>\n<p>add = lambda x, y: x + y<\/p>\n<p>print(&quot;Sum of 3 and 5 is:&quot;, add(3, 5))<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u56db\u3001\u4f7f\u7528\u7b2c\u4e09\u65b9\u5e93\u63d0\u9ad8\u8ba1\u7b97\u6548\u7387<\/p>\n<\/p>\n<p><p>Python\u6709\u8bb8\u591a\u5f3a\u5927\u7684\u7b2c\u4e09\u65b9\u5e93\u53ef\u4ee5\u7528\u4e8e\u9ad8\u6548\u7684\u6570\u5b66\u8ba1\u7b97\u548c\u6570\u636e\u5206\u6790\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>NumPy\u5e93<\/strong><\/li>\n<\/ol>\n<p><p>NumPy\u662f\u4e00\u4e2a\u7528\u4e8e\u79d1\u5b66\u8ba1\u7b97\u7684\u57fa\u7840\u5305\u3002\u5b83\u63d0\u4f9b\u4e86\u4e00\u4e2a\u5f3a\u5927\u7684N\u7ef4\u6570\u7ec4\u5bf9\u8c61\uff0c\u4ee5\u53ca\u4e30\u5bcc\u7684\u51fd\u6570\u5e93\u7528\u4e8e\u5feb\u901f\u5904\u7406\u6570\u7ec4\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import numpy as np<\/p>\n<h2><strong>\u521b\u5efa\u4e00\u4e2aNumPy\u6570\u7ec4\u5e76\u8fdb\u884c\u52a0\u6cd5\u8fd0\u7b97<\/strong><\/h2>\n<p>array1 = np.array([1, 2, 3])<\/p>\n<p>array2 = np.array([4, 5, 6])<\/p>\n<p>sum_array = array1 + array2<\/p>\n<p>print(&quot;Sum of arrays:&quot;, sum_array)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li><strong>Pandas\u5e93<\/strong><\/li>\n<\/ol>\n<p><p>Pandas\u662f\u4e00\u4e2a\u6570\u636e\u5206\u6790\u548c\u6570\u636e\u64cd\u4f5c\u5e93\u3002\u5b83\u63d0\u4f9b\u4e86\u6613\u4e8e\u4f7f\u7528\u7684\u6570\u636e\u7ed3\u6784\u548c\u6570\u636e\u5206\u6790\u5de5\u5177\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pandas as pd<\/p>\n<h2><strong>\u521b\u5efa\u4e00\u4e2aDataFrame\u5e76\u8ba1\u7b97\u5217\u7684\u5747\u503c<\/strong><\/h2>\n<p>data = {&#39;A&#39;: [1, 2, 3, 4], &#39;B&#39;: [5, 6, 7, 8]}<\/p>\n<p>df = pd.DataFrame(data)<\/p>\n<p>mean_values = df.mean()<\/p>\n<p>print(&quot;Mean values of columns:&quot;, mean_values)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e94\u3001\u7efc\u5408\u5b9e\u4f8b\uff1a\u5b9e\u73b0\u4e00\u4e2a\u7b80\u5355\u7684\u8ba1\u7b97\u5668<\/p>\n<\/p>\n<p><p>\u901a\u8fc7\u7ed3\u5408\u4e0a\u8ff0\u7684\u65b9\u6cd5\uff0c\u6211\u4eec\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2a\u7b80\u5355\u7684\u8ba1\u7b97\u5668\uff0c\u5b9e\u73b0\u57fa\u672c\u7684\u6570\u5b66\u8fd0\u7b97\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def add(x, y):<\/p>\n<p>    return x + y<\/p>\n<p>def subtract(x, y):<\/p>\n<p>    return x - y<\/p>\n<p>def multiply(x, y):<\/p>\n<p>    return x * y<\/p>\n<p>def divide(x, y):<\/p>\n<p>    if y == 0:<\/p>\n<p>        return &quot;Error! Division by zero.&quot;<\/p>\n<p>    else:<\/p>\n<p>        return x \/ y<\/p>\n<p>def calculator():<\/p>\n<p>    print(&quot;Select operation:&quot;)<\/p>\n<p>    print(&quot;1. Add&quot;)<\/p>\n<p>    print(&quot;2. Subtract&quot;)<\/p>\n<p>    print(&quot;3. Multiply&quot;)<\/p>\n<p>    print(&quot;4. Divide&quot;)<\/p>\n<p>    choice = input(&quot;Enter choice(1\/2\/3\/4): &quot;)<\/p>\n<p>    num1 = float(input(&quot;Enter first number: &quot;))<\/p>\n<p>    num2 = float(input(&quot;Enter second number: &quot;))<\/p>\n<p>    if choice == &#39;1&#39;:<\/p>\n<p>        print(&quot;Result:&quot;, add(num1, num2))<\/p>\n<p>    elif choice == &#39;2&#39;:<\/p>\n<p>        print(&quot;Result:&quot;, subtract(num1, num2))<\/p>\n<p>    elif choice == &#39;3&#39;:<\/p>\n<p>        print(&quot;Result:&quot;, multiply(num1, num2))<\/p>\n<p>    elif choice == &#39;4&#39;:<\/p>\n<p>        print(&quot;Result:&quot;, divide(num1, num2))<\/p>\n<p>    else:<\/p>\n<p>        print(&quot;Invalid Input&quot;)<\/p>\n<p>calculator()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u4e0a\u9762\u7684\u4f8b\u5b50\uff0c\u6211\u4eec\u53ef\u4ee5\u770b\u5230\u5982\u4f55\u4f7f\u7528Python\u7f16\u5199\u4e00\u4e2a\u529f\u80fd\u7b80\u5355\u4f46\u5b9e\u7528\u7684\u8ba1\u7b97\u5668\u5e94\u7528\u3002\u901a\u8fc7\u5b9a\u4e49\u51fd\u6570\u548c\u4f7f\u7528\u6761\u4ef6\u5224\u65ad\uff0c\u6211\u4eec\u5b9e\u73b0\u4e86\u52a0\u3001\u51cf\u3001\u4e58\u3001\u9664\u7684\u529f\u80fd\u3002<\/p>\n<\/p>\n<p><p>\u603b\u7ed3\u6765\u8bf4\uff0cPython\u5728\u7f16\u5236\u81ea\u52a8\u8ba1\u7b97\u65b9\u9762\u975e\u5e38\u5f3a\u5927\u548c\u7075\u6d3b\u3002\u901a\u8fc7\u4f7f\u7528\u5185\u7f6e\u7684\u6570\u5b66\u5e93\u3001\u7f16\u5199\u51fd\u6570\u3001\u5229\u7528\u5faa\u73af\u548c\u6761\u4ef6\u5224\u65ad\uff0c\u4ee5\u53ca\u4f7f\u7528\u7b2c\u4e09\u65b9\u5e93\u5982NumPy\u548cPandas\uff0c\u6211\u4eec\u53ef\u4ee5\u8f7b\u677e\u5730\u5b9e\u73b0\u4ece\u7b80\u5355\u5230\u590d\u6742\u7684\u5404\u79cd\u8ba1\u7b97\u9700\u6c42\u3002\u8fd9\u4e9b\u7279\u6027\u4f7f\u5f97Python\u6210\u4e3a\u6570\u636e\u79d1\u5b66\u3001\u5de5\u7a0b\u8ba1\u7b97\u3001\u91d1\u878d\u5206\u6790\u7b49\u9886\u57df\u7684\u9996\u9009\u7f16\u7a0b\u8bed\u8a00\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>Python\u53ef\u4ee5\u7528\u4e8e\u54ea\u4e9b\u81ea\u52a8\u8ba1\u7b97\u4efb\u52a1\uff1f<\/strong><br \/>Python\u4f5c\u4e3a\u4e00\u79cd\u5f3a\u5927\u7684\u7f16\u7a0b\u8bed\u8a00\uff0c\u80fd\u591f\u5904\u7406\u591a\u79cd\u81ea\u52a8\u8ba1\u7b97\u4efb\u52a1\uff0c\u5305\u62ec\u6570\u636e\u5206\u6790\u3001\u8d22\u52a1\u8ba1\u7b97\u3001\u79d1\u5b66\u8ba1\u7b97\u3001\u7edf\u8ba1\u5206\u6790\u4ee5\u53ca<a href=\"https:\/\/docs.pingcode.com\/ask\/59192.html\" target=\"_blank\">\u673a\u5668\u5b66\u4e60<\/a>\u6a21\u578b\u7684\u6784\u5efa\u7b49\u3002\u901a\u8fc7\u4f7f\u7528\u5e93\u5982NumPy\u3001Pandas\u3001SciPy\u7b49\uff0c\u7528\u6237\u53ef\u4ee5\u8f7b\u677e\u8fdb\u884c\u590d\u6742\u7684\u6570\u5b66\u8fd0\u7b97\u548c\u6570\u636e\u5904\u7406\uff0c\u63d0\u5347\u5de5\u4f5c\u6548\u7387\u3002<\/p>\n<p><strong>\u6211\u5e94\u8be5\u5b66\u4e60\u54ea\u4e9bPython\u5e93\u6765\u5b9e\u73b0\u81ea\u52a8\u8ba1\u7b97\uff1f<\/strong><br \/>\u4e3a\u5b9e\u73b0\u81ea\u52a8\u8ba1\u7b97\uff0c\u5efa\u8bae\u5b66\u4e60NumPy\uff08\u7528\u4e8e\u6570\u7ec4\u8fd0\u7b97\uff09\u3001Pandas\uff08\u7528\u4e8e\u6570\u636e\u5904\u7406\u548c\u5206\u6790\uff09\u3001Matplotlib\uff08\u7528\u4e8e\u6570\u636e\u53ef\u89c6\u5316\uff09\u4ee5\u53caSciPy\uff08\u7528\u4e8e\u79d1\u5b66\u8ba1\u7b97\uff09\u3002\u8fd9\u4e9b\u5e93\u63d0\u4f9b\u4e86\u5f3a\u5927\u7684\u529f\u80fd\uff0c\u53ef\u4ee5\u5e2e\u52a9\u7528\u6237\u8fdb\u884c\u6570\u5b66\u8fd0\u7b97\u3001\u6570\u636e\u5206\u6790\u548c\u56fe\u8868\u751f\u6210\u7b49\u4efb\u52a1\uff0c\u662f\u81ea\u52a8\u8ba1\u7b97\u7684\u7406\u60f3\u9009\u62e9\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728Python\u4e2d\u5904\u7406\u5927\u91cf\u6570\u636e\u4ee5\u8fdb\u884c\u81ea\u52a8\u8ba1\u7b97\uff1f<\/strong><br \/>\u5728Python\u4e2d\u5904\u7406\u5927\u91cf\u6570\u636e\u65f6\uff0c\u4f7f\u7528Pandas\u5e93\u53ef\u4ee5\u9ad8\u6548\u5730\u52a0\u8f7d\u3001\u6e05\u6d17\u548c\u5206\u6790\u6570\u636e\u3002\u901a\u8fc7DataFrame\u7ed3\u6784\uff0c\u7528\u6237\u53ef\u4ee5\u8f7b\u677e\u5730\u8fdb\u884c\u5404\u79cd\u8ba1\u7b97\u548c\u64cd\u4f5c\u3002\u6b64\u5916\uff0c\u53ef\u4ee5\u7ed3\u5408\u4f7f\u7528Dask\u5e93\u6765\u5904\u7406\u8d85\u51fa\u5185\u5b58\u9650\u5236\u7684\u6570\u636e\u96c6\uff0c\u5b9e\u73b0\u66f4\u9ad8\u6548\u7684\u8ba1\u7b97\u548c\u5206\u6790\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u7f16\u5236\u81ea\u52a8\u8ba1\u7b97\u7684\u65b9\u6cd5\u5305\u62ec\uff1a\u4f7f\u7528\u5185\u7f6e\u7684\u6570\u5b66\u5e93\u3001\u5229\u7528\u5faa\u73af\u548c\u6761\u4ef6\u5224\u65ad\u6765\u81ea\u52a8\u5316\u8ba1\u7b97\u4efb\u52a1\u3001\u7f16\u5199\u51fd\u6570\u5c01\u88c5\u91cd\u590d\u6027\u8ba1 [&hellip;]","protected":false},"author":3,"featured_media":1011446,"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\/1011437"}],"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=1011437"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1011437\/revisions"}],"predecessor-version":[{"id":1011449,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1011437\/revisions\/1011449"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1011446"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1011437"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1011437"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1011437"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}