{"id":7254,"date":"2024-09-21T18:31:21","date_gmt":"2024-09-21T10:31:21","guid":{"rendered":"https:\/\/vip.fxxkpython.com\/?p=7254"},"modified":"2024-09-21T18:31:21","modified_gmt":"2024-09-21T10:31:21","slug":"%e4%bb%8a%e5%a4%a9%e5%b0%8f%e5%b8%85b%e7%bb%99%e4%bd%a0%e5%88%86%e4%ba%ab%e5%87%a0%e4%b8%aa-python-%e8%87%aa%e5%8a%a8%e8%84%9a%e6%9c%ac%ef%bc%8c%e5%b8%8c%e6%9c%9b%e5%af%b9%e4%bd%a0%e6%9c%89%e5%b8%ae","status":"publish","type":"post","link":"https:\/\/vip.fxxkpython.com\/?p=7254","title":{"rendered":"\u4eca\u5929\u5c0f\u5e05b\u7ed9\u4f60\u5206\u4eab\u51e0\u4e2a Python \u81ea\u52a8\u811a\u672c\uff0c\u5e0c\u671b\u5bf9\u4f60\u6709\u5e2e\u52a9\u3002"},"content":{"rendered":"\n<h2><\/h2>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/picx.zhimg.com\/80\/v2-4a59befc61bd65a865c2489d3dac9442_720w.webp\" alt=\"\"\/><figcaption class=\"wp-element-caption\">\u6dfb\u52a0\u56fe\u7247\u6ce8\u91ca\uff0c\u4e0d\u8d85\u8fc7 140 \u5b57\uff08\u53ef\u9009\uff09<\/figcaption><\/figure>\n\n\n\n<h2>\u4f60\u662f\u5426\u538c\u5026\u4e86\u82b1\u8d39\u65e0\u6570\u5c0f\u65f6\u6765\u5904\u7406\u8ba8\u538c\u7684\u5783\u573e\u6587\u4ef6\u548c\u91cd\u590d\u6027\u4efb\u52a1\uff1f<\/h2>\n\n\n\n<p>\u5176\u5b9e\u4f60\u53ef\u4ee5\u8212\u8212\u670d\u670d\u7684\u5750\u4e0b\u6765\uff0c\u653e\u677e\u5fc3\u60c5\uff0c\u770b\u7740 Python \u4e3a\u4f60\u5b8c\u6210\u4f60\u7684\u5de5\u4f5c\u3002<\/p>\n\n\n\n<p>\u5728\u8fd9\u7bc7\u6587\u7ae0\u4e2d\uff0c\u6211\u4eec\u5c06\u63a2\u8ba8\u4e00\u4e9b Python \u81ea\u52a8\u5316\u811a\u672c\uff0c\u5e2e\u52a9\u4f60\u4f18\u5316\u65e5\u5e38\u4efb\u52a1\uff0c\u8282\u7701\u5b9d\u8d35\u7684\u65f6\u95f4\u3002<\/p>\n\n\n\n<p>\u4ee5\u4e0b\u662f\u4e00\u4e9b\u6709\u8da3\u7684\u4f8b\u5b50\uff0c\u5c55\u793a\u5982\u4f55\u4f7f\u7528\u8fd9\u4e9bPython\u81ea\u52a8\u5316\u811a\u672c\u6765\u81ea\u52a8\u5316\u4f60\u7684\u7410\u788e\u4efb\u52a1\uff1a<\/p>\n\n\n\n<h2>1\uff0c\u56fe\u50cf\u4f18\u5316<\/h2>\n\n\n\n<p>\u53ea\u9700\u4e00\u952e\uff0c\u8fd9\u4e2a Python \u81ea\u52a8\u5316\u811a\u672c\u5c31\u80fd\u8ba9\u4f60\u8f7b\u677e\u5730\u50cf\u4e13\u4e1a\u4eba\u58eb\u4e00\u6837\u4f18\u5316\u548c\u64cd\u7eb5\u4f60\u7684\u56fe\u7247\uff0c\u65e0\u9700\u6602\u8d35\u7684\u8f6f\u4ef6\u6216\u590d\u6742\u7684\u7f16\u8f91\u5de5\u5177\u3002<\/p>\n\n\n\n<p>\u8be5\u811a\u672c\u5229\u7528\u4e86\u6d41\u884c\u7684 Pillow \u6a21\u5757\u6765\u4f18\u5316\u56fe\u50cf\u3002\u5b83\u4f7f\u7528 Python Imaging Library (PIL) \u6765\u88c1\u526a\u3001\u8c03\u6574\u5927\u5c0f\u3001\u7ffb\u8f6c\u3001\u65cb\u8f6c\u3001\u538b\u7f29\u3001\u6a21\u7cca\u3001\u9510\u5316\u3001\u8c03\u6574\u4eae\u5ea6\u3001\u5bf9\u6bd4\u5ea6\uff0c\u5e76\u5411\u56fe\u50cf\u6dfb\u52a0\u6ee4\u955c\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># \u56fe\u50cf\u4f18\u5316\nfrom PIL import Image, ImageFilter, ImageOps, ImageEnhance\n\n# \u52a0\u8f7d\u56fe\u50cf\nim = Image.open(\"Image1.jpg\")\n\n# \u88c1\u526a\u56fe\u50cf\nim = im.crop((34, 23, 100, 100))\n\n# \u8c03\u6574\u56fe\u50cf\u5927\u5c0f\nim = im.resize((50, 50))\n\n# \u6c34\u5e73\u7ffb\u8f6c\u56fe\u50cf\nim = im.transpose(Image.FLIP_LEFT_RIGHT)\n\n# \u65cb\u8f6c\u56fe\u50cf360\u5ea6\nim = im.rotate(360)\n\n# \u538b\u7f29\u56fe\u50cf\nim.save(\"Image1.jpg\", optimize=True, quality=90)\n\n# \u5e94\u7528\u6a21\u7cca\u6548\u679c\nim = im.filter(ImageFilter.BLUR)\n\n# \u5e94\u7528\u9510\u5316\u6548\u679c\nim = im.filter(ImageFilter.SHARPEN)\n\n# \u8c03\u6574\u4eae\u5ea6\nenhancer = ImageEnhance.Brightness(im)\nim = enhancer.enhance(1.5)\n\n# \u8c03\u6574\u5bf9\u6bd4\u5ea6\nenhancer = ImageEnhance.Contrast(im)\nim = enhancer.enhance(1.5)\n\n# \u6dfb\u52a0\u6ee4\u955c\nim = ImageOps.grayscale(im)\nim = ImageOps.invert(im)\nim = ImageOps.posterize(im, 4)\n\n# \u4fdd\u5b58\u4f18\u5316\u540e\u7684\u56fe\u50cf\nim.save(\"Image1.jpg\")<\/pre>\n\n\n\n<h2>2\uff0c\u89c6\u9891\u4f18\u5316<\/h2>\n\n\n\n<p>\u8fd9\u4e2a\u811a\u672c\u53ef\u7528\u4e8e\u538b\u7f29\u89c6\u9891\u4ee5\u8282\u7701\u5b58\u50a8\u7a7a\u95f4\u6216\u4f20\u8f93\uff0c\u6216\u8005\u7528\u4e8e\u6539\u5584\u89c6\u9891\u8d28\u91cf\u3002<\/p>\n\n\n\n<p>\u8be5\u811a\u672c\u5229\u7528\u4e86 Moviepy \u6a21\u5757\u901a\u8fc7\u526a\u8f91\u3001\u6539\u53d8\u901f\u5ea6\u3001\u6dfb\u52a0\u97f3\u9891\u4ee5\u53ca\u5e94\u7528\u89c6\u89c9\u6548\u679c\uff08VFX\uff09\u6765\u4f18\u5316\u89c6\u9891\u3002<\/p>\n\n\n\n<p>\u5b83\u4f7f\u7528moviepy\u5e93\u6765\u526a\u8f91\u3001\u52a0\u901f\u3001\u6dfb\u52a0\u97f3\u9891\u3001\u5012\u8f6c\u3001\u5408\u5e76\u3001\u6dfb\u52a0VFX\u4ee5\u53ca\u5411\u89c6\u9891\u4e2d\u6dfb\u52a0\u56fe\u50cf\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><em># \u89c6\u9891\u4f18\u5316\u5668<\/em>\nimport moviepy.editor as pyedit\n\n<em># \u52a0\u8f7d\u89c6\u9891<\/em>\nvideo = pyedit.VideoFileClip(\"vid.mp4\")\n\n<em># \u88c1\u526a\u89c6\u9891<\/em>\nvid1 = video.subclip(0, 10)\nvid2 = video.subclip(20, 40)\nfinal_vid = pyedit.concatenate_videoclips([vid1, vid2])\n\n<em># \u52a0\u5feb\u89c6\u9891\u901f\u5ea6<\/em>\nfinal_vid = final_vid.speedx(2)\n\n<em># \u4e3a\u89c6\u9891\u6dfb\u52a0\u97f3\u9891<\/em>\naud = pyedit.AudioFileClip(\"bg.mp3\")\nfinal_vid = final_vid.set_audio(aud)\n\n<em># \u53cd\u8f6c\u89c6\u9891<\/em>\nfinal_vid = final_vid.fx(pyedit.vfx.time_mirror)\n\n<em># \u5408\u5e76\u4e24\u4e2a\u89c6\u9891<\/em>\nvid1 = pyedit.VideoFileClip(\"vid1.mp4\")\nvid2 = pyedit.VideoFileClip(\"vid2.mp4\")\nfinal_vid = pyedit.concatenate_videoclips([vid1, vid2])\n\n<em># \u4e3a\u89c6\u9891\u6dfb\u52a0VFX<\/em>\nvid1 = final_vid.fx(pyedit.vfx.mirror_x)\nvid2 = final_vid.fx(pyedit.vfx.invert_colors)\nfinal_vid = pyedit.concatenate_videoclips([vid1, vid2])\n\n<em># \u4e3a\u89c6\u9891\u6dfb\u52a0\u56fe\u50cf<\/em>\nimg1 = pyedit.ImageClip(\"img1.jpg\")\nimg2 = pyedit.ImageClip(\"img2.jpg\")\nfinal_vid = pyedit.concatenate_videoclips([img1, img2])\n\n<em># \u4fdd\u5b58\u6700\u7ec8\u89c6\u9891<\/em>\nfinal_vid.write_videofile(\"final.mp4\")<\/pre>\n\n\n\n<h2>3\uff0c\u5b9a\u65f6\u53d1\u9001\u90ae\u4ef6<\/h2>\n\n\n\n<p>\u8fd9\u662f\u4e00\u4e2a\u5f3a\u5927\u7684Python\u81ea\u52a8\u5316\u811a\u672c\uff0c\u53ef\u4ee5\u8ba9\u4f60\u5728\u7279\u5b9a\u65f6\u95f4\u81ea\u52a8\u5b89\u6392\u548c\u53d1\u9001\u7535\u5b50\u90ae\u4ef6\u3002\u501f\u52a9\u8fd9\u4e2a\u811a\u672c\uff0c\u4f60\u53ef\u4ee5\u544a\u522b\u624b\u52a8\u53d1\u9001\u7535\u5b50\u90ae\u4ef6\u3002<\/p>\n\n\n\n<p>\u8be5\u811a\u672c\u5141\u8bb8\u4f60\u5728\u7279\u5b9a\u65f6\u95f4\u81ea\u52a8\u5b89\u6392\u548c\u53d1\u9001\u7535\u5b50\u90ae\u4ef6\uff0c\u4f7f\u7528\u4e86 smtplib \u548c schedule \u6a21\u5757\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><em># \u7535\u5b50\u90ae\u4ef6\u5b9a\u65f6\u53d1\u9001\u5668<\/em>\nimport smtplib\nimport schedule\nimport time\n\ndef send_email():\n    sender_email = \"your_email@gmail.com\"\n    receiver_email = \"recipient_email@gmail.com\"\n    password = \"your_email_password\"\n\n    subject = \"\u81ea\u52a8\u5316\u90ae\u4ef6\"\n    body = \"\u8fd9\u662f\u4f7f\u7528Python\u53d1\u9001\u7684\u81ea\u52a8\u5316\u90ae\u4ef6\u3002\"\n\n    message = f\"Subject: {subject}\\n\\n{body}\"\n\n    with smtplib.SMTP_SSL(\"smtp.gmail.com\", 465) as server:\n        server.login(sender_email, password)\n        server.sendmail(sender_email, receiver_email, message)\n\n<em># \u5b9a\u65f6\u6bcf\u5929\u65e9\u4e0a8\u70b9\u53d1\u9001\u90ae\u4ef6<\/em>\nschedule.every().day.at(\"08:00\").do(send_email)\n\nwhile True:\n    schedule.run_pending()\n    time.sleep(1)<\/pre>\n\n\n\n<h2>4\uff0c\u5c06PDF\u8f6c\u6362\u4e3a\u56fe\u50cf<\/h2>\n\n\n\n<p>\u5c06 PDF \u8f6c\u6362\u4e3a\u56fe\u50cf\u662f\u5404\u884c\u4e1a\u4e2d\u5e38\u89c1\u7684\u4efb\u52a1\uff0c\u4ece\u6587\u6863\u5904\u7406\u5230\u56fe\u5f62\u8bbe\u8ba1\u90fd\u6709\u6d89\u53ca\u3002\u6709\u65f6\u4f60\u53ef\u80fd\u9700\u8981\u4ece PDF \u4e2d\u63d0\u53d6\u5355\u4e2a\u9875\u9762\uff0c\u6216\u5c06\u6574\u4e2a\u6587\u6863\u8f6c\u6362\u4e3a\u56fe\u50cf\u683c\u5f0f\u4ee5\u8fdb\u884c\u8fdb\u4e00\u6b65\u7684\u5904\u7406\u6216\u663e\u793a\u3002<\/p>\n\n\n\n<p>\u8be5\u811a\u672c\u4f7f\u7528 PyMuPD F\u6a21\u5757\u8f7b\u677e\u5c06 PDF \u9875\u9762\u8f6c\u6362\u4e3a\u56fe\u50cf\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><em># PDF\u8f6c\u6362\u4e3a\u56fe\u50cf<\/em>\nimport fitz\n\ndef pdf_to_images(pdf_file):\n    doc = fitz.open(pdf_file)\n    for page in doc:\n        pix = page.get_pixmap()\n        output = f\"page{page.number}.png\"\n        pix.writePNG(output)\n\npdf_to_images(\"test.pdf\")<\/pre>\n\n\n\n<h2>5\uff0c\u83b7\u53d6 API \u6570\u636e<\/h2>\n\n\n\n<p>\u5728\u5f53\u4eca\u6570\u5b57\u65f6\u4ee3\uff0c\u6211\u4eec\u4f9d\u8d56\u5404\u79cd\u7f51\u7edc\u670d\u52a1\u6765\u83b7\u53d6\u6709\u4ef7\u503c\u7684\u4fe1\u606f\uff0c\u4f46\u624b\u52a8\u83b7\u53d6\u6570\u636e\u53ef\u80fd\u4f1a\u8017\u8d39\u65f6\u95f4\u3002\u8be5\u811a\u672c\u6f14\u793a\u4e86\u5982\u4f55\u4f7f\u7528urllib3\u6a21\u5757\u6267\u884cGET\u548cPOST\u8bf7\u6c42\u6765\u83b7\u53d6API\u6570\u636e\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><em># \u83b7\u53d6API\u6570\u636e<\/em>\nimport urllib3\n\n<em># \u4f7f\u7528GET\u8bf7\u6c42\u83b7\u53d6API\u6570\u636e<\/em>\nurl = \"https:\/\/api.github.com\/users\/psf\/repos\"\nhttp = urllib3.PoolManager()\nresponse = http.request('GET', url)\nprint(\"\u72b6\u6001\u7801:\", response.status)\nprint(\"\u54cd\u5e94\u6570\u636e:\", response.data)\n\n<em># \u4f7f\u7528POST\u8bf7\u6c42\u53d1\u5e03API\u6570\u636e<\/em>\nurl = \"https:\/\/httpbin.org\/post\"\nhttp = urllib3.PoolManager()\nresponse = http.request('POST', url, fields={'hello': 'world'})\nprint(\"\u72b6\u6001\u7801:\", response.status)<\/pre>\n\n\n\n<h2>6\uff0c\u7535\u6c60\u6307\u793a<\/h2>\n\n\n\n<p>\u8fd9\u4e2a\u811a\u672c\u53ef\u4ee5\u786e\u4fdd\u5728\u6d89\u53ca\u8bbe\u5907\u7535\u6c60\u5bff\u547d\u65f6\u4f60\u6c38\u8fdc\u4e0d\u4f1a\u9519\u8fc7\u4efb\u4f55\u91cd\u8981\u4fe1\u606f\u3002<\/p>\n\n\n\n<p>\u4f7f\u7528\u8fd9\u4e2a\u65b9\u4fbf\u7684\u5de5\u5177\uff0c\u4f60\u53ef\u4ee5\u8bbe\u7f6e\u4e00\u4e2a\u7279\u5b9a\u7684\u7535\u6c60\u767e\u5206\u6bd4\u9608\u503c\uff0c\u811a\u672c\u5c06\u5bc6\u5207\u5173\u6ce8\u4f60\u7535\u6c60\u7684\u7535\u91cf\u3002<\/p>\n\n\n\n<p>\u8be5\u811a\u672c\u4f7f\u7528 plyer \u548c psutil \u6a21\u5757\uff0c\u5728\u7535\u6c60\u767e\u5206\u6bd4\u8f83\u4f4e\u65f6\u901a\u77e5\u7528\u6237\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><em># \u7535\u6c60\u901a\u77e5\u5668<\/em>\nfrom plyer import notification\nimport psutil\nfrom time import sleep\n\nwhile True:\n    battery = psutil.sensors_battery()\n    life = battery.percent\n\n    if life &lt; 50:\n        notification.notify(\n            title=\"\u7535\u6c60\u4f4e\u7535\u91cf\",\n            message=\"\u8bf7\u8fde\u63a5\u7535\u6e90\",\n            timeout=10\n        )\n    sleep(50)<\/pre>\n\n\n\n<h2>7\uff0c\u4f7f\u7528Pytest\u8fdb\u884c\u81ea\u52a8\u5316\u6d4b\u8bd5<\/h2>\n\n\n\n<p>\u81ea\u52a8\u5316\u6d4b\u8bd5\u662f\u73b0\u4ee3\u8f6f\u4ef6\u5f00\u53d1\u7684\u5173\u952e\u65b9\u9762\uff0c\u5b83\u4f7f\u5f00\u53d1\u4eba\u5458\u80fd\u591f\u9a8c\u8bc1\u5176\u4ee3\u7801\u3001\u6355\u83b7\u9519\u8bef\u5e76\u786e\u4fdd\u5e94\u7528\u7a0b\u5e8f\u7684\u53ef\u9760\u6027\u3002\u5728 Python \u9886\u57df\uff0c\u6709\u4e00\u4e2a\u5f3a\u5927\u4e14\u7528\u6237\u53cb\u597d\u7684\u6d4b\u8bd5\u6846\u67b6\u8131\u9896\u800c\u51fa\uff1aPytest\u3002<\/p>\n\n\n\n<p>\u8be5\u811a\u672c\u6f14\u793a\u4e86\u5982\u4f55\u4f7f\u7528pytest\u6846\u67b6\u6267\u884c\u81ea\u52a8\u5316\u6d4b\u8bd5\u4ee5\u6d4b\u8bd5Python\u4ee3\u7801\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><em># \u4f7f\u7528Pytest\u8fdb\u884c\u81ea\u52a8\u5316\u6d4b\u8bd5<\/em>\nimport pytest\n\n<em># \u5f85\u6d4b\u8bd5\u7684\u51fd\u6570<\/em>\ndef add_numbers(x, y):\n    return x + y\n\n<em># \u51fd\u6570\u7684\u6d4b\u8bd5\u7528\u4f8b<\/em>\ndef test_addition():\n    assert add_numbers(1, 2) == 3\n    assert add_numbers(-1, 1) == 0\n    assert add_numbers(0, 0) == 0\n    assert add_numbers(10, 5) == 15\n\nif __name__ == \"__main__\":\n    pytest.main()<\/pre>\n\n\n\n<h2>8\uff0c\u6587\u4ef6\u5907\u4efd\u4e0e\u540c\u6b65<\/h2>\n\n\n\n<p>\u6587\u4ef6\u5907\u4efd\u4e0e\u540c\u6b65\u811a\u672c\u662f\u4e00\u4e2a\u5f3a\u5927\u7684 Python \u81ea\u52a8\u5316\u5de5\u5177\uff0c\u65e8\u5728\u7b80\u5316\u6587\u4ef6\u7ba1\u7406\u5e76\u786e\u4fdd\u6587\u4ef6\u7684\u5b89\u5168\u6027\u3002<\/p>\n\n\n\n<p>\u8fd9\u4e2a\u811a\u672c\u63d0\u4f9b\u4e86\u4e00\u4e2a\u7b80\u5355\u800c\u6709\u6548\u7684\u89e3\u51b3\u65b9\u6848\u3002\u8be5\u811a\u672c\u4f1a\u81ea\u52a8\u5907\u4efd\u548c\u540c\u6b65\u4e24\u4e2a\u76ee\u5f55\u4e4b\u95f4\u7684\u6587\u4ef6\uff0c\u786e\u4fdd\u4e24\u4e2a\u4f4d\u7f6e\u5177\u6709\u76f8\u540c\u7684\u5185\u5bb9\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># \u6587\u4ef6\u5907\u4efd\u4e0e\u540c\u6b65\u811a\u672c\nimport os\nimport shutil\n\ndef backup_and_sync(source_folder, backup_folder):\n    for root, _, files in os.walk(source_folder):\n        for file in files:\n            source_path = os.path.join(root, file)\n            backup_path = os.path.join(backup_folder, root.replace(source_folder, \"\"), file)\n\n            # \u5982\u679c\u5907\u4efd\u6587\u4ef6\u5939\u4e2d\u7684\u76ee\u5f55\u4e0d\u5b58\u5728\uff0c\u5219\u521b\u5efa\n            os.makedirs(os.path.dirname(backup_path), exist_ok=True)\n\n            # \u5c06\u6587\u4ef6\u590d\u5236\u5230\u5907\u4efd\u6587\u4ef6\u5939\n            shutil.copy2(source_path, backup_path)\n\n    # \u5220\u9664\u5907\u4efd\u6587\u4ef6\u5939\u4e2d\u5728\u6e90\u6587\u4ef6\u5939\u4e2d\u4e0d\u5b58\u5728\u7684\u6587\u4ef6\n    for root, _, files in os.walk(backup_folder):\n        for file in files:\n            backup_path = os.path.join(root, file)\n            source_path = os.path.join(source_folder, root.replace(backup_folder, \"\"), file)\n\n            if not os.path.exists(source_path):\n                os.remove(backup_path)\n\nsource_folder = \"path\/to\/source\/folder\"\nbackup_folder = \"path\/to\/backup\/folder\"\n\nbackup_and_sync(source_folder, backup_folder)<\/pre>\n\n\n\n<p>OK\uff0c\u4ee5\u4e0a\u3002<\/p>\n\n\n\n<p>\u63a8\u8350\u9605\u8bfb\uff1a<\/p>\n\n\n\n<p><a target=\"_blank\" href=\"http:\/\/mp.weixin.qq.com\/s?__biz=Mzg2NzYyNjg2Nw==&amp;mid=2247496895&amp;idx=1&amp;sn=91ef94683c5858cf1322f5f295229b7d&amp;chksm=ceba0ea3f9cd87b5e154e7bc76cc9ea4c647dd5f37ae7fb206e7c4ce40e1f0e8161ba7f19d83&amp;scene=21#wechat_redirect\" rel=\"noreferrer noopener\">\u6210\u4e3a\u72ec\u7acb\u5f00\u53d1\u8005\uff1f<\/a><\/p>\n\n\n\n<p><a target=\"_blank\" href=\"http:\/\/mp.weixin.qq.com\/s?__biz=Mzg2NzYyNjg2Nw==&amp;mid=2247496836&amp;idx=1&amp;sn=946b362f9bc6c5ad79286455e467991f&amp;chksm=ceba0e98f9cd878e1d79d6b3d7dc00b2f98492d002767d3a5eb5d1cf9e2da70679253fcec831&amp;scene=21#wechat_redirect\" rel=\"noreferrer noopener\">\u5f53Python\u4ea4\u4e92\u6709\u4e86 AI!<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4f60\u662f\u5426\u538c\u5026\u4e86\u82b1\u8d39\u65e0\u6570\u5c0f\u65f6\u6765\u5904\u7406\u8ba8\u538c\u7684\u5783\u573e\u6587\u4ef6\u548c\u91cd\u590d\u6027\u4efb\u52a1\uff1f \u5176\u5b9e\u4f60\u53ef\u4ee5\u8212\u8212\u670d\u670d\u7684\u5750\u4e0b\u6765\uff0c\u653e\u677e\u5fc3\u60c5\uff0c\u770b\u7740 Python \u4e3a\u4f60\u5b8c\u6210\u4f60\u7684\u5de5\u4f5c\u3002 \u5728\u8fd9\u7bc7\u6587\u7ae0\u4e2d\uff0c\u6211\u4eec\u5c06\u63a2\u8ba8\u4e00\u4e9b Python \u81ea\u52a8\u5316\u811a\u672c\uff0c\u5e2e\u52a9\u4f60\u4f18\u5316\u65e5\u5e38\u4efb\u52a1\uff0c\u8282\u7701\u5b9d\u8d35\u7684\u65f6\u95f4\u3002 \u4ee5\u4e0b\u662f\u4e00\u4e9b\u6709\u8da3\u7684\u4f8b&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[303],"tags":[],"_links":{"self":[{"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts\/7254"}],"collection":[{"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7254"}],"version-history":[{"count":1,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts\/7254\/revisions"}],"predecessor-version":[{"id":7255,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts\/7254\/revisions\/7255"}],"wp:attachment":[{"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7254"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7254"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7254"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}