{"id":1177993,"date":"2025-01-15T18:04:56","date_gmt":"2025-01-15T10:04:56","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1177993.html"},"modified":"2025-01-15T18:04:59","modified_gmt":"2025-01-15T10:04:59","slug":"python%e5%a6%82%e4%bd%95%e7%a0%b4%e8%a7%a3%e8%a7%86%e9%a2%91%e7%9a%84%e4%b8%ad%e6%96%ad","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1177993.html","title":{"rendered":"Python\u5982\u4f55\u7834\u89e3\u89c6\u9891\u7684\u4e2d\u65ad"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25112801\/a3a2aca6-0e66-4b1f-9b62-b93b523abb02.webp\" alt=\"Python\u5982\u4f55\u7834\u89e3\u89c6\u9891\u7684\u4e2d\u65ad\" \/><\/p>\n<p><p> <strong>Python\u7834\u89e3\u89c6\u9891\u4e2d\u65ad\u7684\u65b9\u6cd5\u5305\u62ec\uff1a\u4f7f\u7528\u89c6\u9891\u6d41\u5e93\u5904\u7406\u89c6\u9891\u6d41\u3001\u5229\u7528\u5faa\u73af\u548c\u6761\u4ef6\u8bed\u53e5\u5b9e\u73b0\u81ea\u52a8\u91cd\u8fde\u3001\u5904\u7406\u89c6\u9891\u6d41\u4e2d\u7684\u9519\u8bef\u548c\u5f02\u5e38\u7b49\u3002<\/strong><\/p>\n<\/p>\n<p><p>\u5176\u4e2d\uff0c<strong>\u4f7f\u7528\u89c6\u9891\u6d41\u5e93\u5904\u7406\u89c6\u9891\u6d41<\/strong>\u662f\u6700\u5173\u952e\u7684\u4e00\u6b65\u3002\u901a\u8fc7\u4f7f\u7528\u89c6\u9891\u6d41\u5e93\u5982OpenCV\u6216GStreamer\uff0c\u53ef\u4ee5\u8bfb\u53d6\u548c\u5904\u7406\u89c6\u9891\u6d41\uff0c\u68c0\u6d4b\u89c6\u9891\u6d41\u7684\u4e2d\u65ad\u5e76\u505a\u51fa\u76f8\u5e94\u7684\u5904\u7406\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u4f7f\u7528OpenCV\u5904\u7406\u89c6\u9891\u6d41\u7684\u6b65\u9aa4\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u4f7f\u7528\u89c6\u9891\u6d41\u5e93\u5904\u7406\u89c6\u9891\u6d41<\/h3>\n<\/p>\n<p><p>\u4f7f\u7528OpenCV\u662f\u5904\u7406\u89c6\u9891\u6d41\u7684\u4e00\u79cd\u5e38\u7528\u65b9\u6cd5\u3002OpenCV\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u89c6\u9891\u5904\u7406\u529f\u80fd\uff0c\u53ef\u4ee5\u8f7b\u677e\u5730\u8bfb\u53d6\u3001\u5904\u7406\u548c\u663e\u793a\u89c6\u9891\u6d41\u3002\u5728\u5904\u7406\u89c6\u9891\u6d41\u65f6\uff0c\u9996\u5148\u9700\u8981\u5b89\u88c5OpenCV\u5e93\u3002\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u8fdb\u884c\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install opencv-python<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u4ee3\u7801\u8bfb\u53d6\u548c\u5904\u7406\u89c6\u9891\u6d41\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import cv2<\/p>\n<p>def process_video_stream(video_url):<\/p>\n<p>    cap = cv2.VideoCapture(video_url)<\/p>\n<p>    if not cap.isOpened():<\/p>\n<p>        print(&quot;Error: Could not open video stream&quot;)<\/p>\n<p>        return<\/p>\n<p>    while True:<\/p>\n<p>        ret, frame = cap.read()<\/p>\n<p>        if not ret:<\/p>\n<p>            print(&quot;Video stream interrupted&quot;)<\/p>\n<p>            break<\/p>\n<p>        cv2.imshow(&#39;Video Stream&#39;, frame)<\/p>\n<p>        if cv2.w<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>tKey(1) &amp; 0xFF == ord(&#39;q&#39;):<\/p>\n<p>            break<\/p>\n<p>    cap.release()<\/p>\n<p>    cv2.destroyAllWindows()<\/p>\n<p>video_url = &#39;http:\/\/your_video_stream_url&#39;<\/p>\n<p>process_video_stream(video_url)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u6bb5\u4ee3\u7801\u4e2d\uff0c\u901a\u8fc7<code>cv2.VideoCapture<\/code>\u51fd\u6570\u8bfb\u53d6\u89c6\u9891\u6d41\uff0c\u5e76\u4f7f\u7528<code>cap.read<\/code>\u51fd\u6570\u8bfb\u53d6\u6bcf\u4e00\u5e27\u89c6\u9891\u6570\u636e\u3002\u5982\u679c\u8bfb\u53d6\u5931\u8d25\uff0c\u8bf4\u660e\u89c6\u9891\u6d41\u4e2d\u65ad\uff0c\u7a0b\u5e8f\u5c06\u6253\u5370\u51fa\u76f8\u5e94\u7684\u63d0\u793a\u4fe1\u606f\u5e76\u7ed3\u675f\u89c6\u9891\u5904\u7406\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u5229\u7528\u5faa\u73af\u548c\u6761\u4ef6\u8bed\u53e5\u5b9e\u73b0\u81ea\u52a8\u91cd\u8fde<\/h3>\n<\/p>\n<p><p>\u5728\u5904\u7406\u89c6\u9891\u6d41\u4e2d\u65ad\u65f6\uff0c\u53ef\u4ee5\u4f7f\u7528\u5faa\u73af\u548c\u6761\u4ef6\u8bed\u53e5\u5b9e\u73b0\u81ea\u52a8\u91cd\u8fde\u3002\u901a\u8fc7\u8bbe\u7f6e\u5faa\u73af\u548c\u91cd\u8fde\u6761\u4ef6\uff0c\u5f53\u89c6\u9891\u6d41\u4e2d\u65ad\u65f6\uff0c\u53ef\u4ee5\u81ea\u52a8\u5c1d\u8bd5\u91cd\u65b0\u8fde\u63a5\u89c6\u9891\u6d41\u3002\u4ee5\u4e0b\u662f\u5b9e\u73b0\u81ea\u52a8\u91cd\u8fde\u7684\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import cv2<\/p>\n<p>import time<\/p>\n<p>def process_video_stream(video_url, max_retries=5):<\/p>\n<p>    retries = 0<\/p>\n<p>    while retries &lt; max_retries:<\/p>\n<p>        cap = cv2.VideoCapture(video_url)<\/p>\n<p>        if not cap.isOpened():<\/p>\n<p>            print(f&quot;Error: Could not open video stream (Retry {retries + 1}\/{max_retries})&quot;)<\/p>\n<p>            retries += 1<\/p>\n<p>            time.sleep(2)  # Wait for 2 seconds before retrying<\/p>\n<p>            continue<\/p>\n<p>        while True:<\/p>\n<p>            ret, frame = cap.read()<\/p>\n<p>            if not ret:<\/p>\n<p>                print(&quot;Video stream interrupted&quot;)<\/p>\n<p>                break<\/p>\n<p>            cv2.imshow(&#39;Video Stream&#39;, frame)<\/p>\n<p>            if cv2.waitKey(1) &amp; 0xFF == ord(&#39;q&#39;):<\/p>\n<p>                break<\/p>\n<p>        cap.release()<\/p>\n<p>        cv2.destroyAllWindows()<\/p>\n<p>        if ret:<\/p>\n<p>            break<\/p>\n<p>video_url = &#39;http:\/\/your_video_stream_url&#39;<\/p>\n<p>process_video_stream(video_url)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u6bb5\u4ee3\u7801\u4e2d\uff0c\u901a\u8fc7\u8bbe\u7f6e\u6700\u5927\u91cd\u8fde\u6b21\u6570<code>max_retries<\/code>\u548c\u91cd\u8fde\u7b49\u5f85\u65f6\u95f4<code>time.sleep(2)<\/code>\uff0c\u53ef\u4ee5\u81ea\u52a8\u5c1d\u8bd5\u91cd\u65b0\u8fde\u63a5\u89c6\u9891\u6d41\uff0c\u76f4\u5230\u8fbe\u5230\u6700\u5927\u91cd\u8fde\u6b21\u6570\u4e3a\u6b62\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u5904\u7406\u89c6\u9891\u6d41\u4e2d\u7684\u9519\u8bef\u548c\u5f02\u5e38<\/h3>\n<\/p>\n<p><p>\u5728\u5904\u7406\u89c6\u9891\u6d41\u65f6\uff0c\u53ef\u80fd\u4f1a\u9047\u5230\u5404\u79cd\u9519\u8bef\u548c\u5f02\u5e38\uff0c\u4f8b\u5982\u7f51\u7edc\u6545\u969c\u3001\u89c6\u9891\u6e90\u4e0d\u53ef\u7528\u7b49\u3002\u4e3a\u4e86\u63d0\u9ad8\u4ee3\u7801\u7684\u5065\u58ee\u6027\uff0c\u53ef\u4ee5\u4f7f\u7528\u5f02\u5e38\u5904\u7406\u673a\u5236\u6355\u83b7\u548c\u5904\u7406\u8fd9\u4e9b\u9519\u8bef\u3002\u4ee5\u4e0b\u662f\u4f7f\u7528\u5f02\u5e38\u5904\u7406\u673a\u5236\u7684\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import cv2<\/p>\n<p>import time<\/p>\n<p>def process_video_stream(video_url, max_retries=5):<\/p>\n<p>    retries = 0<\/p>\n<p>    while retries &lt; max_retries:<\/p>\n<p>        try:<\/p>\n<p>            cap = cv2.VideoCapture(video_url)<\/p>\n<p>            if not cap.isOpened():<\/p>\n<p>                raise Exception(f&quot;Error: Could not open video stream (Retry {retries + 1}\/{max_retries})&quot;)<\/p>\n<p>            while True:<\/p>\n<p>                ret, frame = cap.read()<\/p>\n<p>                if not ret:<\/p>\n<p>                    raise Exception(&quot;Video stream interrupted&quot;)<\/p>\n<p>                cv2.imshow(&#39;Video Stream&#39;, frame)<\/p>\n<p>                if cv2.waitKey(1) &amp; 0xFF == ord(&#39;q&#39;):<\/p>\n<p>                    break<\/p>\n<p>            cap.release()<\/p>\n<p>            cv2.destroyAllWindows()<\/p>\n<p>            if ret:<\/p>\n<p>                break<\/p>\n<p>        except Exception as e:<\/p>\n<p>            print(e)<\/p>\n<p>            retries += 1<\/p>\n<p>            time.sleep(2)  # Wait for 2 seconds before retrying<\/p>\n<p>            continue<\/p>\n<p>video_url = &#39;http:\/\/your_video_stream_url&#39;<\/p>\n<p>process_video_stream(video_url)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u6bb5\u4ee3\u7801\u4e2d\uff0c\u901a\u8fc7<code>try<\/code>\u548c<code>except<\/code>\u5757\u6355\u83b7\u548c\u5904\u7406\u5f02\u5e38\uff0c\u5f53\u51fa\u73b0\u9519\u8bef\u65f6\uff0c\u7a0b\u5e8f\u4f1a\u6253\u5370\u9519\u8bef\u4fe1\u606f\u5e76\u5c1d\u8bd5\u91cd\u65b0\u8fde\u63a5\u89c6\u9891\u6d41\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u4f18\u5316\u89c6\u9891\u6d41\u5904\u7406\u6027\u80fd<\/h3>\n<\/p>\n<p><p>\u5728\u5904\u7406\u89c6\u9891\u6d41\u65f6\uff0c\u6027\u80fd\u662f\u4e00\u4e2a\u91cd\u8981\u8003\u8651\u56e0\u7d20\u3002\u4e3a\u4e86\u63d0\u9ad8\u89c6\u9891\u6d41\u5904\u7406\u6027\u80fd\uff0c\u53ef\u4ee5\u91c7\u53d6\u4ee5\u4e0b\u51e0\u79cd\u65b9\u6cd5\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u964d\u4f4e\u89c6\u9891\u5206\u8fa8\u7387<\/strong>\uff1a\u964d\u4f4e\u89c6\u9891\u5206\u8fa8\u7387\u53ef\u4ee5\u51cf\u5c11\u5904\u7406\u6bcf\u5e27\u89c6\u9891\u6240\u9700\u7684\u8ba1\u7b97\u8d44\u6e90\u3002\u53ef\u4ee5\u4f7f\u7528OpenCV\u7684<code>cv2.resize<\/code>\u51fd\u6570\u8c03\u6574\u89c6\u9891\u5e27\u7684\u5206\u8fa8\u7387\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u9009\u62e9\u5408\u9002\u7684\u7f16\u89e3\u7801\u5668<\/strong>\uff1a\u9009\u62e9\u5408\u9002\u7684\u7f16\u89e3\u7801\u5668\u53ef\u4ee5\u63d0\u9ad8\u89c6\u9891\u6d41\u7684\u89e3\u7801\u548c\u7f16\u7801\u6548\u7387\u3002\u53ef\u4ee5\u4f7f\u7528GStreamer\u6216FFmpeg\u9009\u62e9\u548c\u914d\u7f6e\u5408\u9002\u7684\u7f16\u89e3\u7801\u5668\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u591a\u7ebf\u7a0b\u5904\u7406<\/strong>\uff1a\u4f7f\u7528\u591a\u7ebf\u7a0b\u5904\u7406\u89c6\u9891\u6d41\u53ef\u4ee5\u63d0\u9ad8\u5904\u7406\u6548\u7387\u3002\u53ef\u4ee5\u4f7f\u7528Python\u7684<code>threading<\/code>\u6a21\u5757\u6216\u5176\u4ed6\u591a\u7ebf\u7a0b\u5e93\u5b9e\u73b0\u591a\u7ebf\u7a0b\u5904\u7406\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4ee5\u4e0b\u662f\u4e00\u4e2a\u4f7f\u7528\u591a\u7ebf\u7a0b\u5904\u7406\u89c6\u9891\u6d41\u7684\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import cv2<\/p>\n<p>import threading<\/p>\n<p>class VideoStreamProcessor(threading.Thread):<\/p>\n<p>    def __init__(self, video_url):<\/p>\n<p>        threading.Thread.__init__(self)<\/p>\n<p>        self.video_url = video_url<\/p>\n<p>        self.running = True<\/p>\n<p>    def run(self):<\/p>\n<p>        cap = cv2.VideoCapture(self.video_url)<\/p>\n<p>        if not cap.isOpened():<\/p>\n<p>            print(&quot;Error: Could not open video stream&quot;)<\/p>\n<p>            return<\/p>\n<p>        while self.running:<\/p>\n<p>            ret, frame = cap.read()<\/p>\n<p>            if not ret:<\/p>\n<p>                print(&quot;Video stream interrupted&quot;)<\/p>\n<p>                break<\/p>\n<p>            cv2.imshow(&#39;Video Stream&#39;, frame)<\/p>\n<p>            if cv2.waitKey(1) &amp; 0xFF == ord(&#39;q&#39;):<\/p>\n<p>                break<\/p>\n<p>        cap.release()<\/p>\n<p>        cv2.destroyAllWindows()<\/p>\n<p>    def stop(self):<\/p>\n<p>        self.running = False<\/p>\n<p>video_url = &#39;http:\/\/your_video_stream_url&#39;<\/p>\n<p>video_processor = VideoStreamProcessor(video_url)<\/p>\n<p>video_processor.start()<\/p>\n<h2><strong>To stop the video processing thread<\/strong><\/h2>\n<h2><strong>video_processor.stop()<\/strong><\/h2>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u6bb5\u4ee3\u7801\u4e2d\uff0c\u5b9a\u4e49\u4e86\u4e00\u4e2a<code>VideoStreamProcessor<\/code>\u7c7b\u7ee7\u627f\u81ea<code>threading.Thread<\/code>\uff0c\u901a\u8fc7\u5728<code>run<\/code>\u65b9\u6cd5\u4e2d\u5904\u7406\u89c6\u9891\u6d41\uff0c\u5b9e\u73b0\u4e86\u591a\u7ebf\u7a0b\u5904\u7406\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u7efc\u4e0a\u6240\u8ff0\uff0cPython\u7834\u89e3\u89c6\u9891\u4e2d\u65ad\u7684\u65b9\u6cd5\u5305\u62ec\u4f7f\u7528\u89c6\u9891\u6d41\u5e93\u5904\u7406\u89c6\u9891\u6d41\u3001\u5229\u7528\u5faa\u73af\u548c\u6761\u4ef6\u8bed\u53e5\u5b9e\u73b0\u81ea\u52a8\u91cd\u8fde\u3001\u5904\u7406\u89c6\u9891\u6d41\u4e2d\u7684\u9519\u8bef\u548c\u5f02\u5e38\u3001\u4ee5\u53ca\u4f18\u5316\u89c6\u9891\u6d41\u5904\u7406\u6027\u80fd\u3002\u901a\u8fc7\u4f7f\u7528\u8fd9\u4e9b\u65b9\u6cd5\uff0c\u53ef\u4ee5\u6709\u6548\u5730\u5904\u7406\u89c6\u9891\u6d41\u4e2d\u65ad\u95ee\u9898\uff0c\u63d0\u9ad8\u89c6\u9891\u6d41\u5904\u7406\u7684\u7a33\u5b9a\u6027\u548c\u6027\u80fd\u3002\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u53ef\u4ee5\u6839\u636e\u5177\u4f53\u9700\u6c42\u548c\u573a\u666f\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u8fdb\u884c\u5904\u7406\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u4f7f\u7528Python\u5904\u7406\u89c6\u9891\u4e2d\u65ad\u95ee\u9898\uff1f<\/strong><br \/>\u5728\u9762\u5bf9\u89c6\u9891\u4e2d\u65ad\u65f6\uff0cPython\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u5e93\u6765\u5e2e\u52a9\u6062\u590d\u89c6\u9891\u6d41\u3002\u4f8b\u5982\uff0c\u4f7f\u7528OpenCV\u53ef\u4ee5\u5b9e\u65f6\u6355\u6349\u89c6\u9891\u5e27\uff0c\u5e76\u5728\u4e2d\u65ad\u53d1\u751f\u65f6\u91cd\u65b0\u8fde\u63a5\u6216\u91cd\u542f\u89c6\u9891\u6d41\u3002\u901a\u8fc7\u7f16\u5199\u9002\u5f53\u7684\u5f02\u5e38\u5904\u7406\u4ee3\u7801\uff0c\u53ef\u4ee5\u786e\u4fdd\u7a0b\u5e8f\u5728\u9047\u5230\u9519\u8bef\u65f6\u4e0d\u4f1a\u5d29\u6e83\uff0c\u800c\u662f\u80fd\u591f\u81ea\u52a8\u5c1d\u8bd5\u91cd\u65b0\u83b7\u53d6\u89c6\u9891\u6d41\u3002<\/p>\n<p><strong>\u6709\u4ec0\u4e48\u5e93\u53ef\u4ee5\u5e2e\u52a9\u6211\u5904\u7406\u89c6\u9891\u4e2d\u65ad\uff1f<\/strong><br \/>Python\u4e2d\u6709\u51e0\u4e2a\u5f3a\u5927\u7684\u5e93\u53ef\u4ee5\u5904\u7406\u89c6\u9891\u6d41\uff0c\u5982OpenCV\u3001MoviePy\u548cFFmpeg\u3002\u8fd9\u4e9b\u5e93\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u529f\u80fd\uff0c\u53ef\u4ee5\u6355\u6349\u3001\u5904\u7406\u548c\u7f16\u8f91\u89c6\u9891\u3002OpenCV\u7279\u522b\u9002\u5408\u5b9e\u65f6\u89c6\u9891\u5904\u7406\uff0c\u800cMoviePy\u548cFFmpeg\u5219\u66f4\u9002\u5408\u540e\u671f\u5904\u7406\u548c\u7f16\u8f91\u3002<\/p>\n<p><strong>\u5982\u4f55\u68c0\u6d4b\u89c6\u9891\u6d41\u4e2d\u7684\u4e2d\u65ad\uff1f<\/strong><br \/>\u68c0\u6d4b\u89c6\u9891\u6d41\u4e2d\u7684\u4e2d\u65ad\u53ef\u4ee5\u901a\u8fc7\u76d1\u6d4b\u5e27\u7684\u8fde\u7eed\u6027\u6765\u5b9e\u73b0\u3002\u5982\u679c\u5728\u4e00\u5b9a\u65f6\u95f4\u5185\u672a\u80fd\u6355\u6349\u5230\u65b0\u5e27\uff0c\u5219\u53ef\u4ee5\u8ba4\u4e3a\u89c6\u9891\u6d41\u51fa\u73b0\u4e86\u4e2d\u65ad\u3002\u4f7f\u7528OpenCV\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7\u68c0\u67e5<code>cap.isOpened()<\/code>\u6765\u5224\u65ad\u89c6\u9891\u6d41\u662f\u5426\u6b63\u5e38\u5de5\u4f5c\uff0c\u540c\u65f6\u7ed3\u5408\u65f6\u95f4\u6233\u8bb0\u5f55\uff0c\u53ef\u4ee5\u6709\u6548\u8bc6\u522b\u4e2d\u65ad\u7684\u53d1\u751f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u7834\u89e3\u89c6\u9891\u4e2d\u65ad\u7684\u65b9\u6cd5\u5305\u62ec\uff1a\u4f7f\u7528\u89c6\u9891\u6d41\u5e93\u5904\u7406\u89c6\u9891\u6d41\u3001\u5229\u7528\u5faa\u73af\u548c\u6761\u4ef6\u8bed\u53e5\u5b9e\u73b0\u81ea\u52a8\u91cd\u8fde\u3001\u5904\u7406\u89c6\u9891\u6d41\u4e2d\u7684\u9519\u8bef [&hellip;]","protected":false},"author":3,"featured_media":1177999,"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\/1177993"}],"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=1177993"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1177993\/revisions"}],"predecessor-version":[{"id":1178001,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1177993\/revisions\/1178001"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1177999"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1177993"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1177993"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1177993"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}