{"id":1891,"date":"2019-01-29T11:16:57","date_gmt":"2020-02-12T13:55:58","guid":{"rendered":"http:\/\/vip.fxxkpython.com\/?p=1891"},"modified":"2020-02-12T21:56:00","modified_gmt":"2020-02-12T13:56:00","slug":"0bc221da42","status":"publish","type":"post","link":"https:\/\/vip.fxxkpython.com\/?p=1891","title":{"rendered":"python\u722c\u866b07 | \u6709\u4e86 BeautifulSoup \uff0c\u5988\u5988\u518d\u4e5f\u4e0d\u7528\u62c5\u5fc3\u6211\u7684\u6b63\u5219\u8868\u8fbe\u5f0f\u4e86"},"content":{"rendered":"<div class=\"bpp-post-content\">\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\" >\u6211\u4eec\u4e0a\u6b21\u505a\u4e86<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><a href=\"http:\/\/mp.weixin.qq.com\/s?__biz=MzU2ODYzNTkwMg==&amp;mid=2247484142&amp;idx=1&amp;sn=d4893c734e44a16db871f7904910bdcb&amp;chksm=fc8bba7fcbfc336964aa4ee74d490098024479e663b9a83e7ca8e7b4ec876009a9f497462c77&amp;scene=21#wechat_redirect\" target=\"_blank\" >\u4f60\u7684\u7b2c\u4e00\u4e2a\u722c\u866b\uff0c\u722c\u53d6\u5f53\u5f53\u7f51 Top 500 \u672c\u4e94\u661f\u597d\u8bc4\u4e66\u7c4d<\/a><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u6709\u4e9b\u670b\u53cb\u89c9\u5f97<br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u5229\u7528<a href=\"http:\/\/mp.weixin.qq.com\/s?__biz=MzU2ODYzNTkwMg==&amp;mid=2247484120&amp;idx=1&amp;sn=5f5a2ad4f9c458c4ed04c2726cf0b6f2&amp;chksm=fc8bba49cbfc335f1dae0ffc2ad03cad443cb944c2666ba51f70e0e9663bb86bc960971bf804&amp;scene=21#wechat_redirect\" target=\"_blank\" >\u6b63\u5219\u8868\u8fbe\u5f0f<\/a>\u53bb\u63d0\u53d6\u4fe1\u606f<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u592a\u7279\u4e48\u9ebb\u70e6\u4e86<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><img decoding=\"async\" class=\"mpa-image aligncenter\"     src=\"http:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/02\/python0-1581515758.jpeg\" alt=\"python\" title=\"python\"  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u6709\u6ca1\u6709\u4ec0\u4e48\u522b\u7684\u65b9\u5f0f<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u66f4\u65b9\u4fbf\u8fc7\u6ee4\u6211\u4eec\u60f3\u8981\u7684\u5185\u5bb9\u554a<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">emmmm<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u4f60\u8fd8\u522b\u8bf4<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u8fd8\u771f\u6709<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u6709\u4e00\u4e2a\u9ad8\u6548\u7684\u7f51\u9875\u89e3\u6790\u5e93<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u5b83\u7684\u540d\u5b57\u53eb\u505a<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><strong>BeautifulSoup<\/strong><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u90a3\u53ef\u662f<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><img decoding=\"async\" class=\"mpa-image aligncenter\"     src=\"http:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/02\/python3-1581515758.jpeg\" alt=\"python\" title=\"python\"  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><strong><br  \/><\/strong><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u5b83<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><strong><br  \/><\/strong><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u662f\u4e00\u4e2a\u53ef\u4ee5\u4ece HTML \u6216 XML \u6587\u4ef6\u4e2d\u63d0\u53d6\u6570\u636e\u7684 Python \u5e93<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u90a3\u4e48\u8fd9\u4e48\u73a9\u5462<br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">&#8230;<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u63a5\u4e0b\u6765\u5c31\u662f<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><strong>\u5b66\u4e60python\u7684\u6b63\u786e\u59ff\u52bf<\/strong><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><strong><br  \/><\/strong><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><strong><img decoding=\"async\" class=\"mpa-image aligncenter\"     src=\"http:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/02\/python7-1581515758-1.jpeg\" alt=\"python\" title=\"python\"  \/><\/strong><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><strong><br  \/><\/strong><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><strong><br  \/><\/strong><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u9996\u5148\u6211\u4eec\u8981\u5b89\u88c5\u4e00\u4e0b\u8fd9\u4e2a\u5e93<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">pip&nbsp;install&nbsp;beautifulsoup4<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\">beautifulsoup\u652f\u6301\u4e0d\u540c\u7684\u89e3\u6790\u5668<\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\"><br  \/><\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\">\u6bd4\u5982<\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\"><br  \/><\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\">\u5bf9 HTML \u7684\u89e3\u6790<\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\"><br  \/><\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\">\u5bf9 XML \u7684\u89e3\u6790<\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\"><br  \/><\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\">\u5bf9 HTML5 \u7684\u89e3\u6790<\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u4f60\u770b<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\" aligncenter\"       style=\"\" src=\"http:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/02\/python3-1581515759.png\" alt=\"python\" title=\"python\"  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u4e00\u822c\u60c5\u51b5\u4e0b<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u6211\u4eec\u7528\u7684\u6bd4\u8f83\u591a\u7684\u662f&nbsp;lxml \u89e3\u6790\u5668<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u6211\u4eec\u5148\u6765\u4f7f\u7528\u4e00\u4e2a\u4f8b\u5b50<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u8ba9\u4f60\u4f53\u9a8c\u4e00\u4e0b<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\">beautifulsoup \u7684\u4e00\u4e9b\u5e38\u7528\u7684\u65b9\u6cd5<\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\"><br  \/><\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u53ef\u6d41\u5f0a\u4e86\u5462<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\"><br  \/><\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\"><img decoding=\"async\" class=\"mpa-image aligncenter\"     src=\"http:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/02\/python6-1581515759.jpeg\" alt=\"python\" title=\"python\"  \/><\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\"><br  \/><\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\">\u6bd4\u5982\u6211\u4eec\u6709\u8fd9\u6837\u4e00\u6bb5 HTML \u4ee3\u7801<\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<section   class=\"mpa-template\" mpa-preserve=\"t\">\n<pre style=\"margin:0;padding:0;border-radius:none;background:none;\"><code style=\"border-radius: 4px;font-size: 0.85em;margin: 0px 0.15em;background: rgb(40, 44, 52);color: rgb(171, 178, 191);display: block;padding: 6px;overflow-x: auto;white-space: nowrap;\" class=\"hljs-default\">html_doc = \"\"\"<br  \/><br  \/><span class=\"hljs-default-tag\" style=\"color: rgb(171, 178, 191);background: rgba(0, 0, 0, 0);display: inline;width: 39px;text-decoration: none solid rgb(171, 178, 191);font-weight: 400;font-style: normal;\">&lt;<span class=\"hljs-default-name\" style=\"color: rgb(224, 108, 117);background: rgba(0, 0, 0, 0);display: inline;width: 27px;text-decoration: none solid rgb(224, 108, 117);font-weight: 400;font-style: normal;\">html<\/span>&gt;<\/span><span class=\"hljs-default-tag\" style=\"color: rgb(171, 178, 191);background: rgba(0, 0, 0, 0);display: inline;width: 40px;text-decoration: none solid rgb(171, 178, 191);font-weight: 400;font-style: normal;\">&lt;<span class=\"hljs-default-name\" style=\"color: rgb(224, 108, 117);background: rgba(0, 0, 0, 0);display: inline;width: 26px;text-decoration: none solid rgb(224, 108, 117);font-weight: 400;font-style: normal;\">head<\/span>&gt;<\/span><span class=\"hljs-default-tag\" style=\"color: rgb(171, 178, 191);background: rgba(0, 0, 0, 0);display: inline;width: 46px;text-decoration: none solid rgb(171, 178, 191);font-weight: 400;font-style: normal;\">&lt;<span class=\"hljs-default-name\" style=\"color: rgb(224, 108, 117);background: rgba(0, 0, 0, 0);display: inline;width: 33px;text-decoration: none solid rgb(224, 108, 117);font-weight: 400;font-style: normal;\">title<\/span>&gt;<\/span>\u5b66\u4e60python\u7684\u6b63\u786e\u59ff\u52bf<span class=\"hljs-default-tag\" style=\"color: rgb(171, 178, 191);background: rgba(0, 0, 0, 0);display: inline;width: 52px;text-decoration: none solid rgb(171, 178, 191);font-weight: 400;font-style: normal;\">&lt;\/<span class=\"hljs-default-name\" style=\"color: rgb(224, 108, 117);background: rgba(0, 0, 0, 0);display: inline;width: 33px;text-decoration: none solid rgb(224, 108, 117);font-weight: 400;font-style: normal;\">title<\/span>&gt;<\/span><span class=\"hljs-default-tag\" style=\"color: rgb(171, 178, 191);background: rgba(0, 0, 0, 0);display: inline;width: 47px;text-decoration: none solid rgb(171, 178, 191);font-weight: 400;font-style: normal;\">&lt;\/<span class=\"hljs-default-name\" style=\"color: rgb(224, 108, 117);background: rgba(0, 0, 0, 0);display: inline;width: 26px;text-decoration: none solid rgb(224, 108, 117);font-weight: 400;font-style: normal;\">head<\/span>&gt;<\/span><br  \/><span class=\"hljs-default-tag\" style=\"color: rgb(171, 178, 191);background: rgba(0, 0, 0, 0);display: inline;width: 39px;text-decoration: none solid rgb(171, 178, 191);font-weight: 400;font-style: normal;\">&lt;<span class=\"hljs-default-name\" style=\"color: rgb(224, 108, 117);background: rgba(0, 0, 0, 0);display: inline;width: 27px;text-decoration: none solid rgb(224, 108, 117);font-weight: 400;font-style: normal;\">body<\/span>&gt;<\/span><br  \/><span class=\"hljs-default-tag\" style=\"color: rgb(171, 178, 191);background: rgba(0, 0, 0, 0);display: inline;width: 112px;text-decoration: none solid rgb(171, 178, 191);font-weight: 400;font-style: normal;\">&lt;<span class=\"hljs-default-name\" style=\"color: rgb(224, 108, 117);background: rgba(0, 0, 0, 0);display: inline;width: 7px;text-decoration: none solid rgb(224, 108, 117);font-weight: 400;font-style: normal;\">p<\/span> <span class=\"hljs-default-attr\" style=\"color: rgb(209, 154, 102);background: rgba(0, 0, 0, 0);display: inline;width: 33px;text-decoration: none solid rgb(209, 154, 102);font-weight: 400;font-style: normal;\">class<\/span>=<span class=\"hljs-default-string\" style=\"color: rgb(152, 195, 121);background: rgba(0, 0, 0, 0);display: inline;width: 46px;text-decoration: none solid rgb(152, 195, 121);font-weight: 400;font-style: normal;\">\"title\"<\/span>&gt;<\/span><span class=\"hljs-default-tag\" style=\"color: rgb(171, 178, 191);background: rgba(0, 0, 0, 0);display: inline;width: 20px;text-decoration: none solid rgb(171, 178, 191);font-weight: 400;font-style: normal;\">&lt;<span class=\"hljs-default-name\" style=\"color: rgb(224, 108, 117);background: rgba(0, 0, 0, 0);display: inline;width: 6px;text-decoration: none solid rgb(224, 108, 117);font-weight: 400;font-style: normal;\">b<\/span>&gt;<\/span>\u5c0f\u5e05b\u7684\u6545\u4e8b<span class=\"hljs-default-tag\" style=\"color: rgb(171, 178, 191);background: rgba(0, 0, 0, 0);display: inline;width: 27px;text-decoration: none solid rgb(171, 178, 191);font-weight: 400;font-style: normal;\">&lt;\/<span class=\"hljs-default-name\" style=\"color: rgb(224, 108, 117);background: rgba(0, 0, 0, 0);display: inline;width: 7px;text-decoration: none solid rgb(224, 108, 117);font-weight: 400;font-style: normal;\">b<\/span>&gt;<\/span><span class=\"hljs-default-tag\" style=\"color: rgb(171, 178, 191);background: rgba(0, 0, 0, 0);display: inline;width: 26px;text-decoration: none solid rgb(171, 178, 191);font-weight: 400;font-style: normal;\">&lt;\/<span class=\"hljs-default-name\" style=\"color: rgb(224, 108, 117);background: rgba(0, 0, 0, 0);display: inline;width: 6px;text-decoration: none solid rgb(224, 108, 117);font-weight: 400;font-style: normal;\">p<\/span>&gt;<\/span><br  \/><br  \/><span class=\"hljs-default-tag\" style=\"color: rgb(171, 178, 191);background: rgba(0, 0, 0, 0);display: inline;width: 112px;text-decoration: none solid rgb(171, 178, 191);font-weight: 400;font-style: normal;\">&lt;<span class=\"hljs-default-name\" style=\"color: rgb(224, 108, 117);background: rgba(0, 0, 0, 0);display: inline;width: 7px;text-decoration: none solid rgb(224, 108, 117);font-weight: 400;font-style: normal;\">p<\/span> <span class=\"hljs-default-attr\" style=\"color: rgb(209, 154, 102);background: rgba(0, 0, 0, 0);display: inline;width: 33px;text-decoration: none solid rgb(209, 154, 102);font-weight: 400;font-style: normal;\">class<\/span>=<span class=\"hljs-default-string\" style=\"color: rgb(152, 195, 121);background: rgba(0, 0, 0, 0);display: inline;width: 46px;text-decoration: none solid rgb(152, 195, 121);font-weight: 400;font-style: normal;\">\"story\"<\/span>&gt;<\/span>\u6709\u4e00\u5929\uff0c\u5c0f\u5e05b\u60f3\u7ed9\u5927\u5bb6\u8bb2\u4e24\u4e2a\u7b11\u8bdd<br  \/><span class=\"hljs-default-tag\" style=\"color: rgb(171, 178, 191);background: rgba(0, 0, 0, 0);display: inline;width: 376px;text-decoration: none solid rgb(171, 178, 191);font-weight: 400;font-style: normal;\">&lt;<span class=\"hljs-default-name\" style=\"color: rgb(224, 108, 117);background: rgba(0, 0, 0, 0);display: inline;width: 7px;text-decoration: none solid rgb(224, 108, 117);font-weight: 400;font-style: normal;\">a<\/span> <span class=\"hljs-default-attr\" style=\"color: rgb(209, 154, 102);background: rgba(0, 0, 0, 0);display: inline;width: 26px;text-decoration: none solid rgb(209, 154, 102);font-weight: 400;font-style: normal;\">href<\/span>=<span class=\"hljs-default-string\" style=\"color: rgb(152, 195, 121);background: rgba(0, 0, 0, 0);display: inline;width: 145px;text-decoration: none solid rgb(152, 195, 121);font-weight: 400;font-style: normal;\">\"http:\/\/example.com\/1\"<\/span> <span class=\"hljs-default-attr\" style=\"color: rgb(209, 154, 102);background: rgba(0, 0, 0, 0);display: inline;width: 33px;text-decoration: none solid rgb(209, 154, 102);font-weight: 400;font-style: normal;\">class<\/span>=<span class=\"hljs-default-string\" style=\"color: rgb(152, 195, 121);background: rgba(0, 0, 0, 0);display: inline;width: 53px;text-decoration: none solid rgb(152, 195, 121);font-weight: 400;font-style: normal;\">\"sister\"<\/span> <span class=\"hljs-default-attr\" style=\"color: rgb(209, 154, 102);background: rgba(0, 0, 0, 0);display: inline;width: 13px;text-decoration: none solid rgb(209, 154, 102);font-weight: 400;font-style: normal;\">id<\/span>=<span class=\"hljs-default-string\" style=\"color: rgb(152, 195, 121);background: rgba(0, 0, 0, 0);display: inline;width: 46px;text-decoration: none solid rgb(152, 195, 121);font-weight: 400;font-style: normal;\">\"link1\"<\/span>&gt;<\/span>\u4e00\u4e2a\u7b11\u8bdd\u957f<span class=\"hljs-default-tag\" style=\"color: rgb(171, 178, 191);background: rgba(0, 0, 0, 0);display: inline;width: 26px;text-decoration: none solid rgb(171, 178, 191);font-weight: 400;font-style: normal;\">&lt;\/<span class=\"hljs-default-name\" style=\"color: rgb(224, 108, 117);background: rgba(0, 0, 0, 0);display: inline;width: 7px;text-decoration: none solid rgb(224, 108, 117);font-weight: 400;font-style: normal;\">a<\/span>&gt;<\/span>,<br  \/><span class=\"hljs-default-tag\" style=\"color: rgb(171, 178, 191);background: rgba(0, 0, 0, 0);display: inline;width: 376px;text-decoration: none solid rgb(171, 178, 191);font-weight: 400;font-style: normal;\">&lt;<span class=\"hljs-default-name\" style=\"color: rgb(224, 108, 117);background: rgba(0, 0, 0, 0);display: inline;width: 7px;text-decoration: none solid rgb(224, 108, 117);font-weight: 400;font-style: normal;\">a<\/span> <span class=\"hljs-default-attr\" style=\"color: rgb(209, 154, 102);background: rgba(0, 0, 0, 0);display: inline;width: 26px;text-decoration: none solid rgb(209, 154, 102);font-weight: 400;font-style: normal;\">href<\/span>=<span class=\"hljs-default-string\" style=\"color: rgb(152, 195, 121);background: rgba(0, 0, 0, 0);display: inline;width: 145px;text-decoration: none solid rgb(152, 195, 121);font-weight: 400;font-style: normal;\">\"http:\/\/example.com\/2\"<\/span> <span class=\"hljs-default-attr\" style=\"color: rgb(209, 154, 102);background: rgba(0, 0, 0, 0);display: inline;width: 33px;text-decoration: none solid rgb(209, 154, 102);font-weight: 400;font-style: normal;\">class<\/span>=<span class=\"hljs-default-string\" style=\"color: rgb(152, 195, 121);background: rgba(0, 0, 0, 0);display: inline;width: 53px;text-decoration: none solid rgb(152, 195, 121);font-weight: 400;font-style: normal;\">\"sister\"<\/span> <span class=\"hljs-default-attr\" style=\"color: rgb(209, 154, 102);background: rgba(0, 0, 0, 0);display: inline;width: 13px;text-decoration: none solid rgb(209, 154, 102);font-weight: 400;font-style: normal;\">id<\/span>=<span class=\"hljs-default-string\" style=\"color: rgb(152, 195, 121);background: rgba(0, 0, 0, 0);display: inline;width: 46px;text-decoration: none solid rgb(152, 195, 121);font-weight: 400;font-style: normal;\">\"link2\"<\/span>&gt;<\/span>\u4e00\u4e2a\u7b11\u8bdd\u77ed<span class=\"hljs-default-tag\" style=\"color: rgb(171, 178, 191);background: rgba(0, 0, 0, 0);display: inline;width: 26px;text-decoration: none solid rgb(171, 178, 191);font-weight: 400;font-style: normal;\">&lt;\/<span class=\"hljs-default-name\" style=\"color: rgb(224, 108, 117);background: rgba(0, 0, 0, 0);display: inline;width: 7px;text-decoration: none solid rgb(224, 108, 117);font-weight: 400;font-style: normal;\">a<\/span>&gt;<\/span> ,<br  \/>\u4ed6\u95ee\u5927\u5bb6\uff0c\u60f3\u542c\u957f\u7684\u8fd8\u662f\u77ed\u7684\uff1f<span class=\"hljs-default-tag\" style=\"color: rgb(171, 178, 191);background: rgba(0, 0, 0, 0);display: inline;width: 26px;text-decoration: none solid rgb(171, 178, 191);font-weight: 400;font-style: normal;\">&lt;\/<span class=\"hljs-default-name\" style=\"color: rgb(224, 108, 117);background: rgba(0, 0, 0, 0);display: inline;width: 7px;text-decoration: none solid rgb(224, 108, 117);font-weight: 400;font-style: normal;\">p<\/span>&gt;<\/span><br  \/><br  \/><span class=\"hljs-default-tag\" style=\"color: rgb(171, 178, 191);background: rgba(0, 0, 0, 0);display: inline;width: 112px;text-decoration: none solid rgb(171, 178, 191);font-weight: 400;font-style: normal;\">&lt;<span class=\"hljs-default-name\" style=\"color: rgb(224, 108, 117);background: rgba(0, 0, 0, 0);display: inline;width: 7px;text-decoration: none solid rgb(224, 108, 117);font-weight: 400;font-style: normal;\">p<\/span> <span class=\"hljs-default-attr\" style=\"color: rgb(209, 154, 102);background: rgba(0, 0, 0, 0);display: inline;width: 33px;text-decoration: none solid rgb(209, 154, 102);font-weight: 400;font-style: normal;\">class<\/span>=<span class=\"hljs-default-string\" style=\"color: rgb(152, 195, 121);background: rgba(0, 0, 0, 0);display: inline;width: 46px;text-decoration: none solid rgb(152, 195, 121);font-weight: 400;font-style: normal;\">\"story\"<\/span>&gt;<\/span>...<span class=\"hljs-default-tag\" style=\"color: rgb(171, 178, 191);background: rgba(0, 0, 0, 0);display: inline;width: 26px;text-decoration: none solid rgb(171, 178, 191);font-weight: 400;font-style: normal;\">&lt;\/<span class=\"hljs-default-name\" style=\"color: rgb(224, 108, 117);background: rgba(0, 0, 0, 0);display: inline;width: 6px;text-decoration: none solid rgb(224, 108, 117);font-weight: 400;font-style: normal;\">p<\/span>&gt;<\/span><br  \/><br  \/>\"\"\"<\/code><\/pre>\n<\/section>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\"><\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\">\u5728\u4e0d\u4f7f\u7528 re \u6765\u8fdb\u884c\u6b63\u5219\u8868\u8fbe\u5f0f\u7684\u60c5\u51b5\u4e0b<\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\"><br  \/><\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\">\u5982\u4f55\u5feb\u901f\u83b7\u53d6\u5230\u6211\u4eec\u60f3\u8981\u7684\u5185\u5bb9\u5462\uff1f<\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\"><br  \/><\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\">\u5148\u5b89\u88c5<\/span><span style=\"letter-spacing: 2px;text-align: center;\">\u4e00\u4e0b<\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\"><br  \/><\/span><\/p>\n<p style=\"text-align: center;\"><span style=\"letter-spacing: 2px;text-align: center;background-color: rgb(255, 0, 0);color: rgb(255, 255, 255);\">pip install beautifulsoup4<\/span><\/p>\n<p style=\"text-align: center;\"><span style=\"letter-spacing: 2px;text-align: center;background-color: rgb(255, 0, 0);color: rgb(255, 255, 255);\">pip install lxml<\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\"><\/span><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\">\u63a5\u7740\u5c06 html \u7684\u6e90\u4ee3\u7801\u4f20\u7ed9&nbsp;BeautifulSoup<\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\"><br  \/><\/span><\/p>\n<section   class=\"mpa-template\" mpa-preserve=\"t\">\n<pre style=\"margin:0;padding:0;border-radius:none;background:none;\"><code style=\"border-radius: 4px;font-size: 0.85em;margin: 0px 0.15em;background: rgb(40, 44, 52);color: rgb(171, 178, 191);display: block;padding: 6px;overflow-x: auto;white-space: nowrap;\" class=\"hljs-default\"><span class=\"hljs-default-attr\" style=\"color: rgb(209, 154, 102);background: rgba(0, 0, 0, 0);display: inline;width: 26px;text-decoration: none solid rgb(209, 154, 102);font-weight: 400;font-style: normal;\">soup = BeautifulSoup(html_doc,'lxml')<\/span><\/code><\/pre>\n<\/section>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\"><\/span><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u6b64\u65f6\u6b64\u523b<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u5c31\u4e0d\u9700\u8981\u81ea\u5df1\u5199\u6b63\u5219\u5339\u914d\u4e86<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><img decoding=\"async\" class=\"mpa-image aligncenter\"     src=\"http:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/02\/python1-1581515759.jpeg\" alt=\"python\" title=\"python\"  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u6211\u4eec\u8981\u505a\u7684\u5c31\u662f\u4ece\u8fd9\u4e2a\u5bf9\u8c61<strong>\u76f4\u63a5\u83b7\u53d6<\/strong>\u6211\u4eec\u8981\u7684\u5185\u5bb9<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u83b7\u53d6\u6807\u9898\u7684\u5185\u5bb9<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<section   class=\"mpa-template\" mpa-preserve=\"t\">\n<pre style=\"margin:0;padding:0;border-radius:none;background:none;\"><code style=\"border-radius: 4px;font-size: 0.85em;margin: 0px 0.15em;background: rgb(40, 44, 52);color: rgb(171, 178, 191);display: block;padding: 6px;overflow-x: auto;white-space: nowrap;\" class=\"hljs-default\"><span class=\"hljs-default-keyword\" style=\"color: rgb(198, 120, 221);background: rgba(0, 0, 0, 0);display: inline;width: 33px;text-decoration: none solid rgb(198, 120, 221);font-weight: 400;font-style: normal;\">print<\/span>(soup.title.<span class=\"hljs-default-built_in\" style=\"color: rgb(230, 192, 123);background: rgba(0, 0, 0, 0);display: inline;width: 40px;text-decoration: none solid rgb(230, 192, 123);font-weight: 400;font-style: normal;\">string<\/span>)<br  \/>#\u5b66\u4e60python\u7684\u6b63\u786e\u59ff\u52bf<\/code><\/pre>\n<\/section>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\"><br  \/><\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\"><br  \/><\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\">\u83b7\u53d6 p \u6807\u7b7e\u91cc\u9762\u7684\u5185\u5bb9<\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\"><br  \/><\/span><\/p>\n<section   class=\"mpa-template\" mpa-preserve=\"t\">\n<pre style=\"margin:0;padding:0;border-radius:none;background:none;\"><code style=\"border-radius: 4px;font-size: 0.85em;margin: 0px 0.15em;background: rgb(40, 44, 52);color: rgb(171, 178, 191);display: block;padding: 6px;overflow-x: auto;white-space: nowrap;\" class=\"hljs-default\"><span class=\"hljs-default-keyword\" style=\"color: rgb(198, 120, 221);background: rgba(0, 0, 0, 0);display: inline;width: 33px;text-decoration: none solid rgb(198, 120, 221);font-weight: 400;font-style: normal;\">print<\/span>(soup.<span class=\"hljs-default-keyword\" style=\"color: rgb(198, 120, 221);background: rgba(0, 0, 0, 0);display: inline;width: 7px;text-decoration: none solid rgb(198, 120, 221);font-weight: 400;font-style: normal;\">p<\/span>.<span class=\"hljs-default-built_in\" style=\"color: rgb(230, 192, 123);background: rgba(0, 0, 0, 0);display: inline;width: 39px;text-decoration: none solid rgb(230, 192, 123);font-weight: 400;font-style: normal;\">string<\/span>)<br  \/>#\u5c0f\u5e05<span class=\"hljs-default-keyword\" style=\"color: rgb(198, 120, 221);background: rgba(0, 0, 0, 0);display: inline;width: 7px;text-decoration: none solid rgb(198, 120, 221);font-weight: 400;font-style: normal;\">b<\/span>\u7684\u6545\u4e8b<\/code><\/pre>\n<\/section>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\"><\/span><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u83b7\u53d6 title \u7684\u7236\u7ea7\u6807\u7b7e<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<section   class=\"mpa-template\" mpa-preserve=\"t\">\n<pre style=\"margin:0;padding:0;border-radius:none;background:none;\"><code style=\"border-radius: 4px;font-size: 0.85em;margin: 0px 0.15em;background: rgb(40, 44, 52);color: rgb(171, 178, 191);display: block;padding: 6px;overflow-x: auto;white-space: nowrap;\" class=\"hljs-default\"><span class=\"hljs-default-selector-tag\" style=\"color: rgb(224, 108, 117);background: rgba(0, 0, 0, 0);display: inline;width: 33px;text-decoration: none solid rgb(224, 108, 117);font-weight: 400;font-style: normal;\">print<\/span>(<span class=\"hljs-default-selector-tag\" style=\"color: rgb(224, 108, 117);background: rgba(0, 0, 0, 0);display: inline;width: 27px;text-decoration: none solid rgb(224, 108, 117);font-weight: 400;font-style: normal;\">soup<\/span><span class=\"hljs-default-selector-class\" style=\"color: rgb(209, 154, 102);background: rgba(0, 0, 0, 0);display: inline;width: 39px;text-decoration: none solid rgb(209, 154, 102);font-weight: 400;font-style: normal;\">.title<\/span><span class=\"hljs-default-selector-class\" style=\"color: rgb(209, 154, 102);background: rgba(0, 0, 0, 0);display: inline;width: 47px;text-decoration: none solid rgb(209, 154, 102);font-weight: 400;font-style: normal;\">.parent<\/span><span class=\"hljs-default-selector-class\" style=\"color: rgb(209, 154, 102);background: rgba(0, 0, 0, 0);display: inline;width: 33px;text-decoration: none solid rgb(209, 154, 102);font-weight: 400;font-style: normal;\">.name<\/span>)<br  \/><span class=\"hljs-default-selector-id\" style=\"color: rgb(97, 174, 238);background: rgba(0, 0, 0, 0);display: inline;width: 33px;text-decoration: none solid rgb(97, 174, 238);font-weight: 400;font-style: normal;\">#head<\/span><\/code><\/pre>\n<\/section>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\"><br  \/><\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\">\u83b7\u53d6\u8d85\u94fe\u63a5<\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\"><br  \/><\/span><\/p>\n<section   class=\"mpa-template\" mpa-preserve=\"t\">\n<pre style=\"margin:0;padding:0;border-radius:none;background:none;\"><code style=\"border-radius: 4px;font-size: 0.85em;margin: 0px 0.15em;background: rgb(40, 44, 52);color: rgb(171, 178, 191);display: block;padding: 6px;overflow-x: auto;white-space: nowrap;\" class=\"hljs-default\">print(soup.a)<br  \/><span class=\"hljs-default-meta\" style=\"color: rgb(97, 174, 238);background: rgba(0, 0, 0, 0);display: inline;width: 6px;text-decoration: none solid rgb(97, 174, 238);font-weight: 400;font-style: normal;\">#<\/span><span class=\"bash\">&lt;a class=<span class=\"hljs-default-string\" style=\"color: rgb(152, 195, 121);background: rgba(0, 0, 0, 0);display: inline;width: 53px;text-decoration: none solid rgb(152, 195, 121);font-weight: 400;font-style: normal;\">\"sister\"<\/span> href=<span class=\"hljs-default-string\" style=\"color: rgb(152, 195, 121);background: rgba(0, 0, 0, 0);display: inline;width: 145px;text-decoration: none solid rgb(152, 195, 121);font-weight: 400;font-style: normal;\">\"http:\/\/example.com\/1\"<\/span> id=<span class=\"hljs-default-string\" style=\"color: rgb(152, 195, 121);background: rgba(0, 0, 0, 0);display: inline;width: 46px;text-decoration: none solid rgb(152, 195, 121);font-weight: 400;font-style: normal;\">\"link1\"<\/span>&gt;\u4e00\u4e2a\u7b11\u8bdd\u957f&lt;\/a&gt;<\/span><\/code><\/pre>\n<\/section>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\"><\/span><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u83b7\u53d6\u6240\u6709\u8d85\u94fe\u63a5<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<section   class=\"mpa-template\" mpa-preserve=\"t\">\n<pre style=\"margin:0;padding:0;border-radius:none;background:none;\"><code style=\"border-radius: 4px;font-size: 0.85em;margin: 0px 0.15em;background: rgb(40, 44, 52);color: rgb(171, 178, 191);display: block;padding: 6px;overflow-x: auto;white-space: nowrap;\" class=\"hljs-default\">print(soup.find_all('a'))<br  \/>#[<span class=\"hljs-default-tag\" style=\"color: rgb(171, 178, 191);background: rgba(0, 0, 0, 0);display: inline;width: 376px;text-decoration: none solid rgb(171, 178, 191);font-weight: 400;font-style: normal;\">&lt;<span class=\"hljs-default-name\" style=\"color: rgb(224, 108, 117);background: rgba(0, 0, 0, 0);display: inline;width: 6px;text-decoration: none solid rgb(224, 108, 117);font-weight: 400;font-style: normal;\">a<\/span> <span class=\"hljs-default-attr\" style=\"color: rgb(209, 154, 102);background: rgba(0, 0, 0, 0);display: inline;width: 33px;text-decoration: none solid rgb(209, 154, 102);font-weight: 400;font-style: normal;\">class<\/span>=<span class=\"hljs-default-string\" style=\"color: rgb(152, 195, 121);background: rgba(0, 0, 0, 0);display: inline;width: 53px;text-decoration: none solid rgb(152, 195, 121);font-weight: 400;font-style: normal;\">\"sister\"<\/span> <span class=\"hljs-default-attr\" style=\"color: rgb(209, 154, 102);background: rgba(0, 0, 0, 0);display: inline;width: 26px;text-decoration: none solid rgb(209, 154, 102);font-weight: 400;font-style: normal;\">href<\/span>=<span class=\"hljs-default-string\" style=\"color: rgb(152, 195, 121);background: rgba(0, 0, 0, 0);display: inline;width: 145px;text-decoration: none solid rgb(152, 195, 121);font-weight: 400;font-style: normal;\">\"http:\/\/example.com\/1\"<\/span> <span class=\"hljs-default-attr\" style=\"color: rgb(209, 154, 102);background: rgba(0, 0, 0, 0);display: inline;width: 14px;text-decoration: none solid rgb(209, 154, 102);font-weight: 400;font-style: normal;\">id<\/span>=<span class=\"hljs-default-string\" style=\"color: rgb(152, 195, 121);background: rgba(0, 0, 0, 0);display: inline;width: 46px;text-decoration: none solid rgb(152, 195, 121);font-weight: 400;font-style: normal;\">\"link1\"<\/span>&gt;<\/span>\u4e00\u4e2a\u7b11\u8bdd\u957f<span class=\"hljs-default-tag\" style=\"color: rgb(171, 178, 191);background: rgba(0, 0, 0, 0);display: inline;width: 26px;text-decoration: none solid rgb(171, 178, 191);font-weight: 400;font-style: normal;\">&lt;\/<span class=\"hljs-default-name\" style=\"color: rgb(224, 108, 117);background: rgba(0, 0, 0, 0);display: inline;width: 7px;text-decoration: none solid rgb(224, 108, 117);font-weight: 400;font-style: normal;\">a<\/span>&gt;<\/span>, <span class=\"hljs-default-tag\" style=\"color: rgb(171, 178, 191);background: rgba(0, 0, 0, 0);display: inline;width: 376px;text-decoration: none solid rgb(171, 178, 191);font-weight: 400;font-style: normal;\">&lt;<span class=\"hljs-default-name\" style=\"color: rgb(224, 108, 117);background: rgba(0, 0, 0, 0);display: inline;width: 7px;text-decoration: none solid rgb(224, 108, 117);font-weight: 400;font-style: normal;\">a<\/span> <span class=\"hljs-default-attr\" style=\"color: rgb(209, 154, 102);background: rgba(0, 0, 0, 0);display: inline;width: 33px;text-decoration: none solid rgb(209, 154, 102);font-weight: 400;font-style: normal;\">class<\/span>=<span class=\"hljs-default-string\" style=\"color: rgb(152, 195, 121);background: rgba(0, 0, 0, 0);display: inline;width: 53px;text-decoration: none solid rgb(152, 195, 121);font-weight: 400;font-style: normal;\">\"sister\"<\/span> <span class=\"hljs-default-attr\" style=\"color: rgb(209, 154, 102);background: rgba(0, 0, 0, 0);display: inline;width: 27px;text-decoration: none solid rgb(209, 154, 102);font-weight: 400;font-style: normal;\">href<\/span>=<span class=\"hljs-default-string\" style=\"color: rgb(152, 195, 121);background: rgba(0, 0, 0, 0);display: inline;width: 145px;text-decoration: none solid rgb(152, 195, 121);font-weight: 400;font-style: normal;\">\"http:\/\/example.com\/2\"<\/span> <span class=\"hljs-default-attr\" style=\"color: rgb(209, 154, 102);background: rgba(0, 0, 0, 0);display: inline;width: 13px;text-decoration: none solid rgb(209, 154, 102);font-weight: 400;font-style: normal;\">id<\/span>=<span class=\"hljs-default-string\" style=\"color: rgb(152, 195, 121);background: rgba(0, 0, 0, 0);display: inline;width: 46px;text-decoration: none solid rgb(152, 195, 121);font-weight: 400;font-style: normal;\">\"link2\"<\/span>&gt;<\/span>\u4e00\u4e2a\u7b11\u8bdd\u77ed<span class=\"hljs-default-tag\" style=\"color: rgb(171, 178, 191);background: rgba(0, 0, 0, 0);display: inline;width: 26px;text-decoration: none solid rgb(171, 178, 191);font-weight: 400;font-style: normal;\">&lt;\/<span class=\"hljs-default-name\" style=\"color: rgb(224, 108, 117);background: rgba(0, 0, 0, 0);display: inline;width: 6px;text-decoration: none solid rgb(224, 108, 117);font-weight: 400;font-style: normal;\">a<\/span>&gt;<\/span>]<\/code><\/pre>\n<\/section>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u83b7\u53d6 id \u4e3a link2 \u7684\u8d85\u94fe\u63a5<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<section   class=\"mpa-template\" mpa-preserve=\"t\">\n<pre style=\"margin:0;padding:0;border-radius:none;background:none;\"><code style=\"border-radius: 4px;font-size: 0.85em;margin: 0px 0.15em;background: rgb(40, 44, 52);color: rgb(171, 178, 191);display: block;padding: 6px;overflow-x: auto;white-space: nowrap;\" class=\"hljs-default\"><span class=\"hljs-default-keyword\" style=\"color: rgb(198, 120, 221);background: rgba(0, 0, 0, 0);display: inline;width: 33px;text-decoration: none solid rgb(198, 120, 221);font-weight: 400;font-style: normal;\">print<\/span>(soup.<span class=\"hljs-default-keyword\" style=\"color: rgb(198, 120, 221);background: rgba(0, 0, 0, 0);display: inline;width: 27px;text-decoration: none solid rgb(198, 120, 221);font-weight: 400;font-style: normal;\">find<\/span>(id=<span class=\"hljs-default-string\" style=\"color: rgb(152, 195, 121);background: rgba(0, 0, 0, 0);display: inline;width: 46px;text-decoration: none solid rgb(152, 195, 121);font-weight: 400;font-style: normal;\">\"link2\"<\/span>))<br  \/>#&lt;<span class=\"hljs-default-keyword\" style=\"color: rgb(198, 120, 221);background: rgba(0, 0, 0, 0);display: inline;width: 7px;text-decoration: none solid rgb(198, 120, 221);font-weight: 400;font-style: normal;\">a<\/span> class=<span class=\"hljs-default-string\" style=\"color: rgb(152, 195, 121);background: rgba(0, 0, 0, 0);display: inline;width: 53px;text-decoration: none solid rgb(152, 195, 121);font-weight: 400;font-style: normal;\">\"sister\"<\/span> href=<span class=\"hljs-default-string\" style=\"color: rgb(152, 195, 121);background: rgba(0, 0, 0, 0);display: inline;width: 145px;text-decoration: none solid rgb(152, 195, 121);font-weight: 400;font-style: normal;\">\"http:\/\/example.com\/2\"<\/span> id=<span class=\"hljs-default-string\" style=\"color: rgb(152, 195, 121);background: rgba(0, 0, 0, 0);display: inline;width: 46px;text-decoration: none solid rgb(152, 195, 121);font-weight: 400;font-style: normal;\">\"link2\"<\/span>&gt;\u4e00\u4e2a\u7b11\u8bdd\u77ed&lt;\/<span class=\"hljs-default-keyword\" style=\"color: rgb(198, 120, 221);background: rgba(0, 0, 0, 0);display: inline;width: 6px;text-decoration: none solid rgb(198, 120, 221);font-weight: 400;font-style: normal;\">a<\/span>&gt;<\/code><\/pre>\n<\/section>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u83b7\u53d6\u7f51\u9875\u4e2d\u6240\u6709\u7684\u5185\u5bb9<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<section   class=\"mpa-template\" mpa-preserve=\"t\">\n<pre style=\"margin:0;padding:0;border-radius:none;background:none;\"><code style=\"border-radius: 4px;font-size: 0.85em;margin: 0px 0.15em;background: rgb(40, 44, 52);color: rgb(171, 178, 191);display: block;padding: 6px;overflow-x: auto;white-space: nowrap;\" class=\"hljs-default\"><span class=\"hljs-default-keyword\" style=\"color: rgb(198, 120, 221);background: rgba(0, 0, 0, 0);display: inline;width: 33px;text-decoration: none solid rgb(198, 120, 221);font-weight: 400;font-style: normal;\">print<\/span>(soup.get_text())<br  \/><br  \/># \u5b66\u4e60<span class=\"hljs-default-keyword\" style=\"color: rgb(198, 120, 221);background: rgba(0, 0, 0, 0);display: inline;width: 40px;text-decoration: none solid rgb(198, 120, 221);font-weight: 400;font-style: normal;\">python<\/span>\u7684\u6b63\u786e\u59ff\u52bf<br  \/><br  \/>\u5c0f\u5e05<span class=\"hljs-default-keyword\" style=\"color: rgb(198, 120, 221);background: rgba(0, 0, 0, 0);display: inline;width: 6px;text-decoration: none solid rgb(198, 120, 221);font-weight: 400;font-style: normal;\">b<\/span>\u7684\u6545\u4e8b<br  \/>\u6709\u4e00\u5929\uff0c\u5c0f\u5e05<span class=\"hljs-default-keyword\" style=\"color: rgb(198, 120, 221);background: rgba(0, 0, 0, 0);display: inline;width: 6px;text-decoration: none solid rgb(198, 120, 221);font-weight: 400;font-style: normal;\">b<\/span>\u60f3\u7ed9\u5927\u5bb6\u8bb2\u4e24\u4e2a\u7b11\u8bdd<br  \/>\u4e00\u4e2a\u7b11\u8bdd\u957f,<br  \/>\u4e00\u4e2a\u7b11\u8bdd\u77ed ,<br  \/>\u4ed6\u95ee\u5927\u5bb6\uff0c\u60f3\u542c\u957f\u7684\u8fd8\u662f\u77ed\u7684\uff1f<br  \/>...<\/code><\/pre>\n<\/section>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u9664\u4e86find\u65b9\u6cd5\u4e4b\u5916<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u5982\u679c\u4f60\u5bf9css\u6bd4\u8f83\u719f\u6089<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u4e5f\u53ef\u4ee5\u4f7f\u7528 select \u65b9\u6cd5<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<section   class=\"mpa-template\" mpa-preserve=\"t\">\n<pre style=\"margin:0;padding:0;border-radius:none;background:none;\"><code style=\"border-radius: 4px;font-size: 0.85em;margin: 0px 0.15em;background: rgb(40, 44, 52);color: rgb(171, 178, 191);display: block;padding: 6px;overflow-x: auto;white-space: nowrap;\" class=\"hljs-default\">soup = BeautifulSoup(html_doc,<span class=\"hljs-default-string\" style=\"color: rgb(152, 195, 121);background: rgba(0, 0, 0, 0);display: inline;width: 39px;text-decoration: none solid rgb(152, 195, 121);font-weight: 400;font-style: normal;\">'lxml'<\/span>)<br  \/><br  \/><span class=\"hljs-default-built_in\" style=\"color: rgb(230, 192, 123);background: rgba(0, 0, 0, 0);display: inline;width: 33px;text-decoration: none solid rgb(230, 192, 123);font-weight: 400;font-style: normal;\">print<\/span>(soup.<span class=\"hljs-default-keyword\" style=\"color: rgb(198, 120, 221);background: rgba(0, 0, 0, 0);display: inline;width: 40px;text-decoration: none solid rgb(198, 120, 221);font-weight: 400;font-style: normal;\">select<\/span>(<span class=\"hljs-default-string\" style=\"color: rgb(152, 195, 121);background: rgba(0, 0, 0, 0);display: inline;width: 46px;text-decoration: none solid rgb(152, 195, 121);font-weight: 400;font-style: normal;\">\"title\"<\/span>))<br  \/><span class=\"hljs-default-built_in\" style=\"color: rgb(230, 192, 123);background: rgba(0, 0, 0, 0);display: inline;width: 33px;text-decoration: none solid rgb(230, 192, 123);font-weight: 400;font-style: normal;\">print<\/span>(soup.<span class=\"hljs-default-keyword\" style=\"color: rgb(198, 120, 221);background: rgba(0, 0, 0, 0);display: inline;width: 40px;text-decoration: none solid rgb(198, 120, 221);font-weight: 400;font-style: normal;\">select<\/span>(<span class=\"hljs-default-string\" style=\"color: rgb(152, 195, 121);background: rgba(0, 0, 0, 0);display: inline;width: 52px;text-decoration: none solid rgb(152, 195, 121);font-weight: 400;font-style: normal;\">\"body a\"<\/span>))<br  \/><span class=\"hljs-default-built_in\" style=\"color: rgb(230, 192, 123);background: rgba(0, 0, 0, 0);display: inline;width: 33px;text-decoration: none solid rgb(230, 192, 123);font-weight: 400;font-style: normal;\">print<\/span>(soup.<span class=\"hljs-default-keyword\" style=\"color: rgb(198, 120, 221);background: rgba(0, 0, 0, 0);display: inline;width: 40px;text-decoration: none solid rgb(198, 120, 221);font-weight: 400;font-style: normal;\">select<\/span>(<span class=\"hljs-default-string\" style=\"color: rgb(152, 195, 121);background: rgba(0, 0, 0, 0);display: inline;width: 79px;text-decoration: none solid rgb(152, 195, 121);font-weight: 400;font-style: normal;\">\"p &gt; #link1\"<\/span>))<\/code><\/pre>\n<\/section>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u4ee5\u4e0a\u5c31\u662f&nbsp;<span style=\"letter-spacing: 2px;text-align: center;\">BeautifulSoup \u5e38\u7528\u7684\u65b9\u6cd5<\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\"><br  \/><\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\">\u60f3\u8fdb\u4e00\u6b65\u4e86\u89e3\u53ef\u4ee5\u5230\u8fd9<\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\"><br  \/><\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;color: rgb(0, 82, 255);\">https:\/\/www.crummy.com\/software\/BeautifulSoup\/bs4\/doc\/<\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\"><br  \/><\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u6709\u4e86\u5b83<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u5988\u5988\u518d\u4e5f\u4e0d\u7528\u62c5\u5fc3\u6211\u7684\u6b63\u5219\u8868\u8fbe\u5f0f\u4e86<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u4e0b\u6b21\u8fd8\u6709\u4eba\u8fd9\u6837\u95ee\u4f60<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><a href=\"http:\/\/mp.weixin.qq.com\/s?__biz=MzU2ODYzNTkwMg==&amp;mid=2247484120&amp;idx=1&amp;sn=5f5a2ad4f9c458c4ed04c2726cf0b6f2&amp;chksm=fc8bba49cbfc335f1dae0ffc2ad03cad443cb944c2666ba51f70e0e9663bb86bc960971bf804&amp;scene=21#wechat_redirect\" target=\"_blank\" >\u5e74\u8f7b\u4eba\uff0c\u4e0d\u4f1a\u6b63\u5219\u8868\u8fbe\u5f0f\u4f60\u7761\u5f97\u7740\u89c9\uff1f\u6709\u70b9\u51fa\u606f\u6ca1\u6709\uff1f<\/a><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u4f60\u53ef\u4ee5\u50b2\u5a07\u7684\u544a\u8bc9\u4ed6<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><img decoding=\"async\" class=\"mpa-image aligncenter\"     src=\"http:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/02\/python7-1581515759.jpeg\" alt=\"python\" title=\"python\"  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><strong>\u7761\u5f97\u7740<\/strong><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u672c\u7bc7\u5b8c<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u518d\u89c1<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u8fd1\u671f\u6587\u7ae0<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><a href=\"http:\/\/mp.weixin.qq.com\/s?__biz=MzU2ODYzNTkwMg==&amp;mid=2247484142&amp;idx=1&amp;sn=d4893c734e44a16db871f7904910bdcb&amp;chksm=fc8bba7fcbfc336964aa4ee74d490098024479e663b9a83e7ca8e7b4ec876009a9f497462c77&amp;scene=21#wechat_redirect\" target=\"_blank\" >python\u722c\u866b06 | \u4f60\u7684\u7b2c\u4e00\u4e2a\u722c\u866b\uff0c\u722c\u53d6\u5f53\u5f53\u7f51 Top 500 \u672c\u4e94\u661f\u597d\u8bc4\u4e66\u7c4d<\/a><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><a href=\"http:\/\/mp.weixin.qq.com\/s?__biz=MzU2ODYzNTkwMg==&amp;mid=2247484120&amp;idx=1&amp;sn=5f5a2ad4f9c458c4ed04c2726cf0b6f2&amp;chksm=fc8bba49cbfc335f1dae0ffc2ad03cad443cb944c2666ba51f70e0e9663bb86bc960971bf804&amp;scene=21#wechat_redirect\" target=\"_blank\" >python\u722c\u866b05 | \u5e74\u8f7b\u4eba\uff0c\u4e0d\u4f1a\u6b63\u5219\u8868\u8fbe\u5f0f\u4f60\u7761\u5f97\u7740\u89c9\uff1f\u6709\u70b9\u51fa\u606f\u6ca1\u6709\uff1f<\/a><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><a href=\"http:\/\/mp.weixin.qq.com\/s?__biz=MzU2ODYzNTkwMg==&amp;mid=2247484115&amp;idx=1&amp;sn=4f9ca3f0938cf9d9eaa9c6ff6c457481&amp;chksm=fc8bba42cbfc335478f72ef83049238aab250f5cf471cffe60b9ac736368b0eb4dbd2c74bcfd&amp;scene=21#wechat_redirect\" target=\"_blank\" >python\u722c\u866b04 | \u957f\u6c5f\u540e\u6d6a\u63a8\u524d\u6d6a\uff0cReuqests\u5e93\u628aurllib\u5e93\u62cd\u5728\u6c99\u6ee9\u4e0a<\/a><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;text-align: center;\"><img decoding=\"async\" class=\"mpa-image aligncenter\"     src=\"http:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/02\/python1-1581515759.gif\" alt=\"python\" title=\"python\"  \/><\/p>\n<p style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;text-align: center;\"><strong><span style=\"letter-spacing: 2px;text-align: center;\">\u626b\u4e00\u626b<\/span><\/strong><\/p>\n<p style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;text-align: center;\"><strong><span style=\"letter-spacing: 2px;text-align: center;\">\u5b66\u4e60 Python \u6ca1\u70e6\u607c<\/span><\/strong><\/p>\n<p style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;text-align: center;\"><strong><span style=\"letter-spacing: 2px;text-align: center;\"><br  \/><\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\" aligncenter\"       style=\"width: 69%;height: auto !important;box-shadow: rgb(170, 170, 170) 0em 0em 1em 0px;\" src=\"http:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/02\/python0-1581515760.jpeg\" alt=\"python\" title=\"python\"  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: right;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: right;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u597d\u770b\u7684\u4eba\u90fd\u70b9\u4e86<\/p>\n<blockquote class=\"keep-source\">\n<p>\u539f\u6587\u59cb\u53d1\u4e8e\u5fae\u4fe1\u516c\u4f17\u53f7\uff08\u5b66\u4e60python\u7684\u6b63\u786e\u59ff\u52bf\uff09\uff1a<a target=\"_blank\" href=\"http:\/\/mp.weixin.qq.com\/s?__biz=MzU2ODYzNTkwMg==&#038;mid=2247484147&#038;idx=1&#038;sn=ea755f668585d237622e897a73ef6549&#038;chksm=fc8bba62cbfc3374e3fd2e98167a8da6f6e9ea48c1564c9006a1b487707f5387d59c15fe3c3a\">python<\/a><\/p>\n<\/blockquote>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u6211\u4eec\u4e0a\u6b21\u505a\u4e86 \u4f60\u7684\u7b2c\u4e00\u4e2a\u722c\u866b\uff0c\u722c\u53d6\u5f53\u5f53\u7f51 Top 500 \u672c\u4e94\u661f\u597d\u8bc4\u4e66\u7c4d \u6709\u4e9b\u670b\u53cb\u89c9\u5f97 \u5229\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u53bb\u63d0\u53d6\u4fe1\u606f \u592a\u7279\u4e48\u9ebb\u70e6\u4e86 \u6709\u6ca1\u6709\u4ec0\u4e48\u522b\u7684\u65b9\u5f0f \u66f4\u65b9\u4fbf\u8fc7\u6ee4\u6211\u4eec\u60f3\u8981\u7684\u5185\u5bb9\u554a emmmm \u4f60\u8fd8\u522b\u8bf4 \u8fd8\u771f\u6709 \u6709\u4e00\u4e2a\u9ad8\u6548\u7684\u7f51\u9875\u89e3\u6790\u5e93 \u5b83\u7684\u540d\u5b57\u53eb\u505a Bea&hellip;<\/p>\n","protected":false},"author":1,"featured_media":1892,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[303],"tags":[302,19,300,301],"_links":{"self":[{"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts\/1891"}],"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=1891"}],"version-history":[{"count":1,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts\/1891\/revisions"}],"predecessor-version":[{"id":1902,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts\/1891\/revisions\/1902"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/media\/1892"}],"wp:attachment":[{"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1891"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1891"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1891"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}