{"id":979613,"date":"2024-12-27T06:47:57","date_gmt":"2024-12-26T22:47:57","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/979613.html"},"modified":"2024-12-27T06:47:59","modified_gmt":"2024-12-26T22:47:59","slug":"python%e7%88%ac%e8%99%ab%e5%a6%82%e4%bd%95%e8%ae%be%e7%bd%ae%e6%97%b6%e9%97%b4","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/979613.html","title":{"rendered":"python\u722c\u866b\u5982\u4f55\u8bbe\u7f6e\u65f6\u95f4"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24205354\/e9311165-dcfb-49c1-84df-7e0ec7039d0a.webp\" alt=\"python\u722c\u866b\u5982\u4f55\u8bbe\u7f6e\u65f6\u95f4\" \/><\/p>\n<p><p> \u4e00\u3001Python\u722c\u866b\u5982\u4f55\u8bbe\u7f6e\u65f6\u95f4<\/p>\n<\/p>\n<p><p>\u5728Python\u722c\u866b\u4e2d\uff0c\u8bbe\u7f6e\u65f6\u95f4\u7684\u4e3b\u8981\u76ee\u7684\u662f<strong>\u63a7\u5236\u8bf7\u6c42\u9891\u7387\u3001\u9632\u6b62\u88ab\u5c01\u7981\u3001\u6a21\u62df\u4eba\u7c7b\u884c\u4e3a<\/strong>\u3002\u901a\u8fc7\u8bbe\u7f6e\u65f6\u95f4\u95f4\u9694\uff0c\u722c\u866b\u53ef\u4ee5\u66f4\u53cb\u597d\u5730\u8bbf\u95ee\u76ee\u6807\u7f51\u7ad9\uff0c\u51cf\u5c11\u5bf9\u670d\u52a1\u5668\u7684\u538b\u529b\uff0c\u907f\u514d\u88ab\u53cd\u722c\u673a\u5236\u68c0\u6d4b\u3002\u901a\u5e38\u91c7\u7528\u7684\u65b9\u5f0f\u5305\u62ec\u4f7f\u7528<code>time.sleep()<\/code>\u51fd\u6570\u8bbe\u7f6e\u56fa\u5b9a\u7684\u65f6\u95f4\u95f4\u9694\u3001\u4f7f\u7528\u968f\u673a\u6570\u751f\u6210\u5668\u589e\u52a0\u968f\u673a\u6027\u3001\u5b9e\u73b0\u66f4\u52a0\u590d\u6742\u7684\u8bf7\u6c42\u8c03\u5ea6\u7b56\u7565\u3002<strong>\u5176\u4e2d\uff0c\u4f7f\u7528\u968f\u673a\u65f6\u95f4\u95f4\u9694\u53ef\u4ee5\u6709\u6548\u964d\u4f4e\u722c\u866b\u88ab\u68c0\u6d4b\u7684\u98ce\u9669<\/strong>\u3002\u968f\u673a\u65f6\u95f4\u95f4\u9694\u901a\u8fc7\u5f15\u5165\u4e0d\u786e\u5b9a\u6027\uff0c\u4f7f\u5f97\u722c\u866b\u7684\u884c\u4e3a\u66f4\u63a5\u8fd1\u4eba\u7c7b\uff0c\u51cf\u5c11\u88ab\u5c01\u7981\u7684\u53ef\u80fd\u6027\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u4f7f\u7528<code>time.sleep()<\/code>\u51fd\u6570<\/p>\n<\/p>\n<p><p><code>time.sleep()<\/code>\u51fd\u6570\u662fPython\u6807\u51c6\u5e93\u4e2d\u4e00\u4e2a\u7b80\u5355\u4f46\u6709\u6548\u7684\u65b9\u6cd5\uff0c\u7528\u4e8e\u5728\u722c\u866b\u4e2d\u8bbe\u7f6e\u8bf7\u6c42\u95f4\u9694\u3002\u901a\u8fc7\u5728\u6bcf\u6b21\u8bf7\u6c42\u540e\u8c03\u7528<code>time.sleep()<\/code>\uff0c\u53ef\u4ee5\u5f3a\u5236\u722c\u866b\u6682\u505c\u4e00\u6bb5\u65f6\u95f4\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u56fa\u5b9a\u65f6\u95f4\u95f4\u9694<\/strong><\/p>\n<\/p>\n<p><p>\u4f7f\u7528\u56fa\u5b9a\u65f6\u95f4\u95f4\u9694\u662f\u8bbe\u7f6e\u722c\u866b\u8bf7\u6c42\u9891\u7387\u7684\u6700\u76f4\u63a5\u65b9\u6cd5\u3002\u5177\u4f53\u6765\u8bf4\uff0c\u53ef\u4ee5\u5728\u6bcf\u6b21\u8bf7\u6c42\u5b8c\u6210\u540e\uff0c\u8c03\u7528<code>time.sleep()<\/code>\u51fd\u6570\u8bbe\u7f6e\u4e00\u4e2a\u56fa\u5b9a\u7684\u79d2\u6570\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import time<\/p>\n<p>for i in range(10):<\/p>\n<p>    # \u6267\u884c\u722c\u866b\u8bf7\u6c42<\/p>\n<p>    print(f&quot;Fetching data for request {i}&quot;)<\/p>\n<p>    time.sleep(2)  # \u6bcf\u6b21\u8bf7\u6c42\u540e\u6682\u505c2\u79d2<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u7b80\u5355\u6613\u7528\uff0c\u4f46\u5176\u7f3a\u70b9\u5728\u4e8e\u6240\u6709\u8bf7\u6c42\u7684\u95f4\u9694\u90fd\u662f\u4e00\u81f4\u7684\uff0c\u5bb9\u6613\u88ab\u53cd\u722c\u673a\u5236\u68c0\u6d4b\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u968f\u673a\u65f6\u95f4\u95f4\u9694<\/strong><\/p>\n<\/p>\n<p><p>\u4e3a\u4e86\u4f7f\u8bf7\u6c42\u66f4\u4e0d\u89c4\u5f8b\uff0c\u53ef\u4ee5\u4f7f\u7528\u968f\u673a\u6570\u751f\u6210\u5668\uff0c\u8bbe\u7f6e\u4e00\u4e2a\u968f\u673a\u7684\u65f6\u95f4\u95f4\u9694\u3002\u8fd9\u6837\u53ef\u4ee5\u6a21\u62df\u4eba\u7c7b\u7684\u4e0d\u786e\u5b9a\u884c\u4e3a\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import time<\/p>\n<p>import random<\/p>\n<p>for i in range(10):<\/p>\n<p>    # \u6267\u884c\u722c\u866b\u8bf7\u6c42<\/p>\n<p>    print(f&quot;Fetching data for request {i}&quot;)<\/p>\n<p>    sleep_time = random.uniform(1, 3)  # \u57281\u52303\u79d2\u4e4b\u95f4\u968f\u673a\u9009\u62e9\u4e00\u4e2a\u95f4\u9694<\/p>\n<p>    time.sleep(sleep_time)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u8fd9\u79cd\u65b9\u6cd5\u901a\u8fc7\u5f15\u5165\u968f\u673a\u6027\uff0c\u6709\u6548\u964d\u4f4e\u4e86\u722c\u866b\u88ab\u68c0\u6d4b\u7684\u98ce\u9669<\/strong>\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e09\u3001\u8bf7\u6c42\u8c03\u5ea6\u7b56\u7565<\/p>\n<\/p>\n<p><p>\u9664\u4e86\u7b80\u5355\u7684\u65f6\u95f4\u95f4\u9694\u8bbe\u7f6e\uff0c\u590d\u6742\u7684\u722c\u866b\u9879\u76ee\u53ef\u80fd\u9700\u8981\u66f4\u9ad8\u7ea7\u7684\u8bf7\u6c42\u8c03\u5ea6\u7b56\u7565\uff0c\u4ee5\u4f18\u5316\u722c\u866b\u6027\u80fd\u548c\u9690\u853d\u6027\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u52a8\u6001\u8c03\u6574\u95f4\u9694<\/strong><\/p>\n<\/p>\n<p><p>\u52a8\u6001\u8c03\u6574\u95f4\u9694\u662f\u6307\u6839\u636e\u722c\u866b\u7684\u8fd0\u884c\u72b6\u51b5\u6216\u8005\u5916\u90e8\u6761\u4ef6\uff0c\u52a8\u6001\u6539\u53d8\u8bf7\u6c42\u7684\u65f6\u95f4\u95f4\u9694\u3002\u4f8b\u5982\uff0c\u6839\u636e\u7f51\u9875\u54cd\u5e94\u65f6\u95f4\u8c03\u6574\u722c\u866b\u7684\u8bf7\u6c42\u901f\u5ea6\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import time<\/p>\n<p>import random<\/p>\n<p>def fetch_data():<\/p>\n<p>    # \u6a21\u62df\u8bf7\u6c42<\/p>\n<p>    response_time = random.uniform(0.5, 1.5)  # \u6a21\u62df\u54cd\u5e94\u65f6\u95f4<\/p>\n<p>    return response_time<\/p>\n<p>for i in range(10):<\/p>\n<p>    response_time = fetch_data()<\/p>\n<p>    print(f&quot;Response time for request {i}: {response_time}&quot;)<\/p>\n<p>    time.sleep(response_time + random.uniform(0.5, 1.5))<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u53ef\u4ee5\u81ea\u9002\u5e94\u8c03\u6574\uff0c\u65e2\u4e0d\u5f71\u54cd\u722c\u866b\u6548\u7387\uff0c\u53c8\u80fd\u51cf\u5c11\u88ab\u68c0\u6d4b\u7684\u98ce\u9669\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u591a\u7ebf\u7a0b\u4e0e\u5f02\u6b65\u8bf7\u6c42<\/strong><\/p>\n<\/p>\n<p><p>\u5728\u9700\u8981\u63d0\u9ad8\u722c\u866b\u6548\u7387\u7684\u60c5\u51b5\u4e0b\uff0c\u53ef\u4ee5\u8003\u8651\u4f7f\u7528\u591a\u7ebf\u7a0b\u6216\u5f02\u6b65\u8bf7\u6c42\u7684\u65b9\u5f0f\uff0c\u540c\u65f6\u53d1\u8d77\u591a\u4e2a\u8bf7\u6c42\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u65f6\u95f4\u95f4\u9694\u53ef\u4ee5\u5728\u6bcf\u4e2a\u7ebf\u7a0b\u6216\u534f\u7a0b\u4e2d\u5355\u72ec\u8bbe\u7f6e\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import time<\/p>\n<p>import random<\/p>\n<p>import threading<\/p>\n<p>def thread_function(name):<\/p>\n<p>    for i in range(5):<\/p>\n<p>        print(f&quot;Thread {name}: Request {i}&quot;)<\/p>\n<p>        sleep_time = random.uniform(1, 3)<\/p>\n<p>        time.sleep(sleep_time)<\/p>\n<p>threads = []<\/p>\n<p>for index in range(3):<\/p>\n<p>    thread = threading.Thread(target=thread_function, args=(index,))<\/p>\n<p>    threads.append(thread)<\/p>\n<p>    thread.start()<\/p>\n<p>for thread in threads:<\/p>\n<p>    thread.join()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u8fd9\u79cd\u65b9\u6cd5\u53ef\u4ee5\u5728\u4fdd\u8bc1\u8bf7\u6c42\u9891\u7387\u7684\u540c\u65f6\uff0c\u663e\u8457\u63d0\u9ad8\u722c\u866b\u7684\u6570\u636e\u6293\u53d6\u6548\u7387<\/strong>\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u56db\u3001\u6a21\u62df\u4eba\u7c7b\u884c\u4e3a<\/p>\n<\/p>\n<p><p>\u4e3a\u4e86\u8fdb\u4e00\u6b65\u964d\u4f4e\u88ab\u5c01\u7981\u7684\u98ce\u9669\uff0c\u53ef\u4ee5\u901a\u8fc7\u6a21\u62df\u4eba\u7c7b\u884c\u4e3a\u6765\u8bbe\u8ba1\u722c\u866b\u7684\u8bbf\u95ee\u6a21\u5f0f\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u6a21\u62df\u9f20\u6807\u548c\u952e\u76d8\u64cd\u4f5c<\/strong><\/p>\n<\/p>\n<p><p>\u4f7f\u7528\u81ea\u52a8\u5316\u5de5\u5177\u5982Selenium\uff0c\u53ef\u4ee5\u6a21\u62df\u4eba\u7c7b\u7684\u9f20\u6807\u70b9\u51fb\u548c\u952e\u76d8\u8f93\u5165\uff0c\u589e\u52a0\u8bbf\u95ee\u7684\u771f\u5b9e\u6027\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from selenium import webdriver<\/p>\n<p>import time<\/p>\n<p>driver = webdriver.Chrome()<\/p>\n<p>driver.get(&#39;http:\/\/example.com&#39;)<\/p>\n<h2><strong>\u6a21\u62df\u9f20\u6807\u6eda\u52a8<\/strong><\/h2>\n<p>driver.execute_script(&quot;window.scrollTo(0, document.body.scrollHeight);&quot;)<\/p>\n<p>time.sleep(2)<\/p>\n<h2><strong>\u6a21\u62df\u70b9\u51fb\u64cd\u4f5c<\/strong><\/h2>\n<p>button = driver.find_element_by_id(&#39;some-button-id&#39;)<\/p>\n<p>button.click()<\/p>\n<p>time.sleep(2)<\/p>\n<p>driver.quit()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u901a\u8fc7\u6a21\u62df\u4eba\u7c7b\u64cd\u4f5c\uff0c\u722c\u866b\u80fd\u591f\u66f4\u597d\u5730\u878d\u5165\u6b63\u5e38\u7684\u7528\u6237\u6d41\u91cf\u4e2d<\/strong>\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u968f\u673a\u5316\u8bf7\u6c42\u5934\u548c\u4ee3\u7406<\/strong><\/p>\n<\/p>\n<p><p>\u968f\u673a\u5316\u8bf7\u6c42\u5934\u548c\u4f7f\u7528\u4ee3\u7406\u662f\u6a21\u62df\u4eba\u7c7b\u884c\u4e3a\u7684\u53e6\u4e00\u79cd\u65b9\u5f0f\u3002\u901a\u8fc7\u66f4\u6362User-Agent\u548cIP\u5730\u5740\uff0c\u53ef\u4ee5\u4f7f\u8bf7\u6c42\u770b\u8d77\u6765\u6765\u81ea\u4e0d\u540c\u7684\u7528\u6237\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import requests<\/p>\n<p>import random<\/p>\n<p>user_agents = [<\/p>\n<p>    &#39;Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/58.0.3029.110 Safari\/537.3&#39;, <\/p>\n<p>    &#39;Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Firefox\/54.0 Safari\/537.3&#39;<\/p>\n<p>]<\/p>\n<p>proxies = [<\/p>\n<p>    &#39;http:\/\/10.10.10.10:8000&#39;,<\/p>\n<p>    &#39;http:\/\/11.11.11.11:8000&#39;<\/p>\n<p>]<\/p>\n<p>headers = {&#39;User-Agent&#39;: random.choice(user_agents)}<\/p>\n<p>proxy = {&#39;http&#39;: random.choice(proxies)}<\/p>\n<p>response = requests.get(&#39;http:\/\/example.com&#39;, headers=headers, proxies=proxy)<\/p>\n<p>print(response.status_code)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u8fd9\u79cd\u65b9\u6cd5\u901a\u8fc7\u589e\u52a0\u8bf7\u6c42\u7684\u591a\u6837\u6027\uff0c\u8fdb\u4e00\u6b65\u51cf\u5c11\u4e86\u88ab\u5c01\u7981\u7684\u53ef\u80fd\u6027<\/strong>\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e94\u3001\u603b\u7ed3<\/p>\n<\/p>\n<p><p>\u5728Python\u722c\u866b\u4e2d\u8bbe\u7f6e\u65f6\u95f4\u662f\u4e00\u4e2a\u91cd\u8981\u7684\u73af\u8282\uff0c\u53ef\u4ee5\u6709\u6548\u63a7\u5236\u722c\u866b\u7684\u8bf7\u6c42\u9891\u7387\uff0c\u907f\u514d\u88ab\u5c01\u7981\u3002\u901a\u8fc7\u4f7f\u7528<code>time.sleep()<\/code>\u51fd\u6570\u8bbe\u7f6e\u56fa\u5b9a\u6216\u968f\u673a\u65f6\u95f4\u95f4\u9694\u3001\u5b9e\u73b0\u52a8\u6001\u7684\u8bf7\u6c42\u8c03\u5ea6\u7b56\u7565\u3001\u4ee5\u53ca\u6a21\u62df\u4eba\u7c7b\u884c\u4e3a\uff0c\u722c\u866b\u53ef\u4ee5\u5728\u4fdd\u62a4\u81ea\u8eab\u5b89\u5168\u7684\u540c\u65f6\uff0c\u63d0\u9ad8\u6293\u53d6\u6548\u7387\u3002\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u9700\u8981\u6839\u636e\u76ee\u6807\u7f51\u7ad9\u7684\u7279\u6027\u548c\u722c\u866b\u7684\u9700\u6c42\uff0c\u7075\u6d3b\u5e94\u7528\u8fd9\u4e9b\u65b9\u6cd5\uff0c\u4ee5\u5b9e\u73b0\u6700\u4f73\u7684\u722c\u866b\u884c\u4e3a\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u722c\u866b\u4e2d\u8bbe\u7f6e\u8bf7\u6c42\u7684\u5ef6\u8fdf\u65f6\u95f4\uff1f<\/strong><br \/>\u5728Python\u722c\u866b\u4e2d\uff0c\u4e3a\u4e86\u907f\u514d\u5bf9\u76ee\u6807\u7f51\u7ad9\u9020\u6210\u8fc7\u5927\u7684\u538b\u529b\uff0c\u5efa\u8bae\u5728\u8bf7\u6c42\u4e4b\u95f4\u8bbe\u7f6e\u5ef6\u8fdf\u65f6\u95f4\u3002\u53ef\u4ee5\u4f7f\u7528<code>time.sleep()<\/code>\u51fd\u6570\u6765\u5b9e\u73b0\u3002\u4f8b\u5982\uff0c\u5728\u53d1\u9001\u8bf7\u6c42\u4e4b\u524d\uff0c\u8c03\u7528<code>time.sleep(2)<\/code>\u5c06\u4f7f\u722c\u866b\u5728\u6bcf\u6b21\u8bf7\u6c42\u4e4b\u95f4\u6682\u505c2\u79d2\u3002\u8fd9\u6837\u53ef\u4ee5\u6709\u6548\u5730\u63a7\u5236\u8bf7\u6c42\u9891\u7387\uff0c\u4ece\u800c\u964d\u4f4e\u88ab\u7f51\u7ad9\u5c01\u7981\u7684\u98ce\u9669\u3002<\/p>\n<p><strong>\u5982\u4f55\u4f7f\u7528\u8c03\u5ea6\u5668\u6765\u7ba1\u7406\u722c\u866b\u7684\u8fd0\u884c\u65f6\u95f4\uff1f<\/strong><br \/>\u5bf9\u4e8e\u9700\u8981\u5b9a\u65f6\u6293\u53d6\u6570\u636e\u7684\u722c\u866b\uff0c\u53ef\u4ee5\u4f7f\u7528\u8c03\u5ea6\u5668\uff08\u5982<code>APScheduler<\/code>\u6216<code>schedule<\/code>\u5e93\uff09\u6765\u8bbe\u7f6e\u722c\u866b\u7684\u8fd0\u884c\u65f6\u95f4\u3002\u8fd9\u4e9b\u5e93\u53ef\u4ee5\u5e2e\u52a9\u4f60\u8bbe\u5b9a\u722c\u866b\u5728\u7279\u5b9a\u7684\u65f6\u95f4\u70b9\u6216\u5468\u671f\u6027\u5730\u8fd0\u884c\uff0c\u786e\u4fdd\u6570\u636e\u7684\u5b9e\u65f6\u6027\u4e0e\u66f4\u65b0\u9891\u7387\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u8bbe\u7f6e\u722c\u866b\u6bcf\u5929\u5b9a\u65f6\u6293\u53d6\u4e00\u6b21\u6570\u636e\uff0c\u9002\u5408\u9700\u8981\u5b9a\u671f\u76d1\u63a7\u7684\u7f51\u7ad9\u3002<\/p>\n<p><strong>\u5982\u4f55\u5904\u7406\u722c\u866b\u5728\u8bf7\u6c42\u65f6\u7684\u8d85\u65f6\u8bbe\u7f6e\uff1f<\/strong><br \/>\u5728\u8fdb\u884c\u7f51\u9875\u8bf7\u6c42\u65f6\uff0c\u8bbe\u7f6e\u8d85\u65f6\u53ef\u4ee5\u9632\u6b62\u7a0b\u5e8f\u957f\u65f6\u95f4\u7b49\u5f85\u54cd\u5e94\uff0c\u786e\u4fdd\u722c\u866b\u8fd0\u884c\u7684\u7a33\u5b9a\u6027\u3002\u4f7f\u7528<code>requests<\/code>\u5e93\u65f6\uff0c\u53ef\u4ee5\u5728\u8bf7\u6c42\u4e2d\u6dfb\u52a0<code>timeout<\/code>\u53c2\u6570\uff0c\u4f8b\u5982<code>requests.get(url, timeout=5)<\/code>\uff0c\u8fd9\u5c06\u4f7f\u8bf7\u6c42\u57285\u79d2\u5185\u672a\u83b7\u5f97\u54cd\u5e94\u65f6\u629b\u51fa\u5f02\u5e38\u3002\u901a\u8fc7\u5408\u7406\u7684\u8d85\u65f6\u8bbe\u7f6e\uff0c\u53ef\u4ee5\u63d0\u9ad8\u722c\u866b\u7684\u6548\u7387\u548c\u53ef\u9760\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u4e00\u3001Python\u722c\u866b\u5982\u4f55\u8bbe\u7f6e\u65f6\u95f4 \u5728Python\u722c\u866b\u4e2d\uff0c\u8bbe\u7f6e\u65f6\u95f4\u7684\u4e3b\u8981\u76ee\u7684\u662f\u63a7\u5236\u8bf7\u6c42\u9891\u7387\u3001\u9632\u6b62\u88ab\u5c01\u7981\u3001\u6a21\u62df\u4eba\u7c7b [&hellip;]","protected":false},"author":3,"featured_media":979623,"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\/979613"}],"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=979613"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/979613\/revisions"}],"predecessor-version":[{"id":979624,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/979613\/revisions\/979624"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/979623"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=979613"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=979613"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=979613"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}