{"id":80797,"date":"2026-03-06T01:35:50","date_gmt":"2026-03-05T17:35:50","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/80797.html"},"modified":"2026-03-06T01:35:50","modified_gmt":"2026-03-05T17:35:50","slug":"python%e4%bd%9c%e4%b8%9a%ef%bc%9a%e7%88%ac%e8%99%ab%e7%88%ac%e5%8f%96%e3%80%8a%e7%ba%a2%e6%a5%bc%e6%a2%a6%e3%80%8b%e5%85%a8%e5%8d%b7%ef%bc%8c%e5%b9%b6%e5%b0%86%e5%85%b6%e5%88%87%e5%88%86%e4%b8%ba120","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/80797.html","title":{"rendered":"Python\u4f5c\u4e1a\uff1a\u722c\u866b\u722c\u53d6\u300a\u7ea2\u697c\u68a6\u300b\u5168\u5377\uff0c\u5e76\u5c06\u5176\u5207\u5206\u4e3a120\u7bc7\uff08\u9644\u5b8c\u6574\u6e90\u4ee3\u7801\uff09"},"content":{"rendered":"<p>\u672c\u6587\u4ece\u722c\u53d6\u300a\u7ea2\u697c\u68a6\u300b\u5168\u5377&#xff0c;\u5230\u5c06\u5176\u5207\u5206\u4e3a120\u7bc7&#xff0c;\u8be6\u7ec6\u7684\u8bb2\u89e3\u5982\u4f55\u64cd\u4f5c\u3002\u4ee5\u6b64\u7c7b\u63a8\u53ef\u4ee5\u722c\u53d6\u300a\u300b\u300a\u897f\u6e38\u8bb0\u300b\u3001\u300a\u4e09\u56fd\u6f14\u4e49\u300b\u7b49\u5176\u4ed6\u6587\u672c&#xff0c;\u6709\u7684\u7f51\u7ad9\u65e0\u6cd5\u5355\u72ec\u722c\u53d6\u5404\u7ae0\u8282&#xff0c;\u672c\u6587\u4e5f\u4f1a\u4ecb\u7ecd\u5982\u4f55\u5c06\u5404\u7ae0\u8282\u5b8c\u6574\u5207\u5206\u3002<\/p>\n<h2>\u4e00\u3001\u722c\u53d6\u7ea2\u697c\u68a6\u5168\u5377<\/h2>\n<h3>1.1\u627e\u5230\u9700\u8981\u722c\u53d6\u7684\u4f4d\u7f6e<\/h3>\n<p>\u00a0\u6211\u662f\u5728\u767e\u5ea6\u968f\u4fbf\u627e\u4e86\u4e00\u4e2a\u7f51\u7ad9&#xff1a;https:\/\/hongloumeng.5000yan.com\/<\/p>\n<p>\u5927\u5bb6\u53ef\u4ee5\u81ea\u5df1\u627e&#xff0c;\u6211\u4f1a\u8be6\u7ec6\u4ecb\u7ecd\u6211\u4eec\u722c\u866b\u9700\u8981\u83b7\u53d6\u7684\u4fe1\u606f&#xff0c;\u5f53\u9700\u8981\u722c\u53d6\u5176\u4ed6\u7f51\u7ad9\u65f6\u539f\u7406\u4e5f\u662f\u4e00\u6837\u7684\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"302\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/03\/20260305173536-69a9bee81cff6.png\" width=\"565\" \/><\/p>\n<p>\u5728\u6253\u5f00\u6211\u4eec\u9700\u8981\u722c\u53d6\u7684\u7f51\u7ad9\u4ee5\u540e&#xff0c;\u6253\u5f00\u5f00\u53d1\u8005\u5de5\u5177\u3002<\/p>\n<p>\u6253\u5f00\u5f00\u53d1\u8005\u6a21\u5f0f\u6709\u4e24\u79cd\u65b9\u6cd5&#xff1a; 1.\u76f4\u63a5\u6309\u201cf12\u201d<\/p>\n<p>2.\u5728\u9009\u9879-\u66f4\u591a\u5de5\u5177-\u5f00\u53d1\u8005\u5de5\u5177\u5f53\u4e2d&#xff08;\u8fd9\u91cc\u4e0d\u597d\u622a\u56fe&#xff09;<\/p>\n<p>\u6253\u5f00\u5f00\u53d1\u8005\u5de5\u5177\u4ee5\u540e\u8bb0\u5f97\u5237\u65b0\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1368\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/03\/20260305173537-69a9bee9a6b4b.png\" width=\"2560\" \/><\/p>\n<p>\u7136\u540e\u627e\u5230network\u7f51\u7edc&#xff0c;\u7136\u540e\u627e\u5230\u72b6\u6001&#xff1a;304&#xff0c;\u7c7b\u578b&#xff1a;document\u90a3\u4e00\u680f\u6570\u636e&#xff0c;\u5176\u4ed6\u7f51\u5740\u4e5f\u662f\u627e\u72b6\u6001&#xff1a;304&#xff0c;\u7c7b\u578b&#xff1a;document\u90a3\u4e00\u680f\u6570\u636e\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1368\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/03\/20260305173539-69a9beeb9d5aa.png\" width=\"2560\" \/><\/p>\n<p>\u70b9\u5f00<\/p>\n<p>\u8fd9\u91cc\u6211\u4eec\u9700\u8981\u627e\u5230\u4e09\u4e2a\u5173\u952e\u4fe1\u606f&#xff1a;<\/p>\n<p>1.&#034;user-agent&#034;: Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/145.0.0.0 Safari\/537.36 Edg\/145.0.0.0, 2.&#034;accept&#034;:text\/html,application\/xhtml&#043;xml,application\/xml;q&#061;0.9,image\/avif,image\/webp,image\/apng,*\/*;q&#061;0.8,application\/signed-exchange;v&#061;b3;q&#061;0.7 3.&#034;host&#034;: hongloumeng.5000yan.com<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1242\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/03\/20260305173541-69a9beed7dd86.png\" width=\"1113\" \/><\/p>\n<p>\u90a3\u5176\u4ed6\u6709\u722c\u866b\u57fa\u7840\u7684\u540c\u5b66\u5c31\u8981\u95ee\u4e86&#xff0c;\u4e3a\u4e86\u53cd\u722c\u866b\u6211\u52a0\u4e0a\u5176\u4ed6\u7684\u4fe1\u606f&#xff0c;\u6bd4\u5982cookie\u884c\u4e0d\u884c&#xff0c;\u53ef\u4ee5&#xff0c;\u4f46\u662f\u4f7f\u7528cookie\u9700\u8981\u6ce8\u610f&#xff0c;cookie\u662f\u4e0d\u65ad\u5237\u65b0\u7684&#xff0c;\u4f60\u73b0\u5728\u7684cookie\u53ef\u4ee5\u7528&#xff0c;\u4f46\u662f\u53ef\u80fd\u7b2c\u4e8c\u5929\u5c31\u8981\u91cd\u65b0\u83b7\u53d6cookie&#xff0c;\u6240\u4ee5\u4e0d\u9700\u8981cookie\u4e5f\u80fd\u722c&#xff0c;\u5c31\u6700\u597d\u4e0d\u52a0cookie\u3002<\/p>\n<h3>1.2\u627e\u5230\u9700\u8981\u722c\u53d6\u5404\u7ae0\u8282\u7684URL<\/h3>\n<p>\u6ce8\u610f\u5230&#xff0c;\u7b2c1\u7ae0\u662fhttps:\/\/hongloumeng.5000yan.com\/hlm1127.html<\/p>\n<p>\u7b2c2\u7ae0https:\/\/hongloumeng.5000yan.com\/hlm1128.html<\/p>\n<p>\u7b2c120\u7ae0https:\/\/hongloumeng.5000yan.com\/hlm1246.html<\/p>\n<p>\u5b83\u4eec\u7684URL\u662f\u4ece1127\u52301246\u7684&#xff0c;\u6211\u4eec\u5728\u540e\u7eed\u4ee3\u7801\u5c31\u53ef\u4ee5\u4ece1127\u722c\u52301246<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"210\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/03\/20260305173542-69a9beee26013.png\" width=\"843\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"215\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/03\/20260305173542-69a9beee3db92.png\" width=\"858\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"195\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/03\/20260305173542-69a9beee589b8.png\" width=\"1019\" \/><\/p>\n<h3>1.3\u627e\u5230\u722c\u53d6\u9700\u8981\u722c\u53d6\u7684\u6b63\u6587<\/h3>\n<p>1.\u6211\u4eec\u5148\u590d\u5236\u4e00\u6bb5\u8bdd<\/p>\n<p>2.\u518d\u5728\u641c\u7d22\u6846\u5f53\u4e2d\u641c\u7d22&#xff0c;\u627e\u5230\u6b63\u6587\u6240\u5728\u4f4d\u7f6e<\/p>\n<p>3.\u627e\u5230\u6b63\u6587\u5c31\u5728div class&#061;&#034;grap&#034;\u540e\u9762<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1368\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/03\/20260305173542-69a9beee6fa19.png\" width=\"2560\" \/><\/p>\n<p>OK&#xff0c;\u73b0\u5728\u6211\u4eec\u722c\u866b\u9700\u8981\u7684\u5168\u90e8\u4fe1\u606f\u90fd\u5df2\u7ecf\u83b7\u53d6\u5230\u4e86\u3002<\/p>\n<h2>\u4e8c.\u722c\u866b\u4ee3\u7801<\/h2>\n<p>import requests<br \/>\nfrom bs4 import BeautifulSoup<br \/>\nimport time<br \/>\nimport os<\/p>\n<p># \u914d\u7f6e\u9879<br \/>\nBASE_URL &#061; &#034;https:\/\/hongloumeng.5000yan.com\/&#034;<br \/>\nSTART_SUFFIX_NUM &#061; 1127  # \u7b2c\u4e00\u56de<br \/>\nEND_SUFFIX_NUM &#061; 1246  # \u7b2c\u4e00\u767e\u4e8c\u5341\u56de<br \/>\nSAVE_DIR &#061; &#034;\u7ea2\u697c\u68a6\u5168\u5377&#034;<br \/>\nSAVE_FILENAME &#061; &#034;\u7ea2\u697c\u68a6\u5168\u5377.txt&#034;<\/p>\n<p>HEADERS &#061; {<br \/>\n    &#034;user-agent&#034;: &#034;Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/145.0.0.0 Safari\/537.36&#034;,<br \/>\n    &#034;accept&#034;: &#034;text\/html,application\/xhtml&#043;xml,application\/xml;q&#061;0.9,*\/*;q&#061;0.8&#034;,<br \/>\n    &#034;host&#034;: &#034;hongloumeng.5000yan.com&#034;<br \/>\n}<\/p>\n<p>def create_save_dir():<br \/>\n    &#034;&#034;&#034;\u521b\u5efa\u4fdd\u5b58\u76ee\u5f55&#034;&#034;&#034;<br \/>\n    if not os.path.exists(SAVE_DIR):<br \/>\n        os.makedirs(SAVE_DIR)<br \/>\n        print(f&#034;\u521b\u5efa\u4fdd\u5b58\u76ee\u5f55&#xff1a;{SAVE_DIR}&#034;)<\/p>\n<p>def get_chapter_content(url):<br \/>\n    &#034;&#034;&#034;\u83b7\u53d6\u5355\u56de\u5185\u5bb9&#xff08;\u7cbe\u51c6\u9002\u914d\u76ee\u6807\u7f51\u7ad9\u7ed3\u6784&#xff09;&#034;&#034;&#034;<br \/>\n    try:<br \/>\n        time.sleep(1)  # \u9632\u53cd\u722c\u5ef6\u65f6<br \/>\n        response &#061; requests.get(url, headers&#061;HEADERS, timeout&#061;15)<br \/>\n        response.raise_for_status()  # \u629b\u51faHTTP\u9519\u8bef<br \/>\n        response.encoding &#061; &#034;utf-8&#034;  # \u5f3a\u5236UTF-8\u7f16\u7801&#xff0c;\u907f\u514d\u4e71\u7801<\/p>\n<p>        soup &#061; BeautifulSoup(response.text, &#034;html.parser&#034;)<\/p>\n<p>        # 1. \u63d0\u53d6\u7ae0\u8282\u6807\u9898<br \/>\n        title_tag &#061; soup.find(&#034;h5&#034;, class_&#061;&#034;py-3 lh-base text-center&#034;)<br \/>\n        chapter_title &#061; title_tag.get_text(<br \/>\n            strip&#061;True) if title_tag else f&#034;\u7b2c{(int(url.split(&#039;hlm&#039;)[1].split(&#039;.&#039;)[0]) &#8211; 1126)}\u56de \u672a\u77e5\u6807\u9898&#034;<\/p>\n<p>        # 2. \u63d0\u53d6\u6b63\u6587<br \/>\n        grap_tag &#061; soup.find(&#034;div&#034;, class_&#061;&#034;grap&#034;)<br \/>\n        if not grap_tag:<br \/>\n            return chapter_title, &#034;\u672a\u627e\u5230\u6b63\u6587&#034;<\/p>\n<p>        # 3. \u6e05\u7406\u6b63\u6587&#xff1a;\u63d0\u53d6\u6240\u6709\u6587\u672c&#xff0c;\u53bb\u9664\u591a\u4f59\u6362\u884c\u548c\u7a7a\u683c<br \/>\n        content &#061; []<br \/>\n        # \u904d\u5386grap\u4e0b\u7684\u6240\u6709\u5b50\u8282\u70b9&#xff0c;\u63d0\u53d6\u6587\u672c<br \/>\n        for child in grap_tag.descendants:<br \/>\n            if child.name is None and child.strip():  # \u53ea\u53d6\u6587\u672c\u8282\u70b9&#xff0c;\u4e14\u975e\u7a7a<br \/>\n                text &#061; child.strip().replace(&#034;\\\\u200b&#034;, &#034;&#034;).replace(&#034;&amp;ldquo;&#034;,<br \/>\n                                                                   &#034;\u201c&#034;).replace(&#034;&amp;rdquo;&#034;,<br \/>\n                                                                                &#034;\u201d&#034;)<br \/>\n                text &#061; text.replace(&#034;&amp;lsquo;&#034;, &#034;\u2018&#034;).replace(&#034;&amp;rsquo;&#034;, &#034;\u2019&#034;).replace(<br \/>\n                    &#034;&lt;br \/&gt;&#034;, &#034;\\\\n&#034;)<br \/>\n                content.append(text)<\/p>\n<p>        # \u5408\u5e76\u6587\u672c&#xff0c;\u53bb\u9664\u8fde\u7eed\u7a7a\u884c<br \/>\n        chapter_content &#061; &#034;\\\\n\\\\n&#034;.join([line for line in content if line])<br \/>\n        if not chapter_content:<br \/>\n            return chapter_title, &#034;\u6b63\u6587\u5185\u5bb9\u4e3a\u7a7a&#034;<\/p>\n<p>        return chapter_title, chapter_content<\/p>\n<p>    except requests.exceptions.RequestException as e:<br \/>\n        return &#034;\u8bf7\u6c42\u5931\u8d25&#034;, f&#034;\u9519\u8bef\u4fe1\u606f&#xff1a;{str(e)}&#034;<br \/>\n    except Exception as e:<br \/>\n        return &#034;\u89e3\u6790\u5931\u8d25&#034;, f&#034;\u9519\u8bef\u4fe1\u606f&#xff1a;{str(e)}&#034;<\/p>\n<p>def save_all_chapters_to_single_file(all_chapters):<br \/>\n    &#034;&#034;&#034;\u5c06\u6240\u6709\u7ae0\u8282\u4fdd\u5b58\u5230\u5355\u4e2a\u6587\u4ef6&#034;&#034;&#034;<br \/>\n    filepath &#061; os.path.join(SAVE_DIR, SAVE_FILENAME)<br \/>\n    with open(filepath, &#034;w&#034;, encoding&#061;&#034;utf-8&#034;) as f:<br \/>\n        # \u5199\u5165\u6587\u4ef6\u5934\u90e8<br \/>\n        f.write(&#034;\u300a\u7ea2\u697c\u68a6\u300b\u5168\u5377\\\\n&#034;)<br \/>\n        f.write(&#034;&#061;&#034; * 80 &#043; &#034;\\\\n\\\\n&#034;)<\/p>\n<p>        # \u6309\u987a\u5e8f\u5199\u5165\u6240\u6709\u7ae0\u8282<br \/>\n        for chapter_num, chapter_title, chapter_content in all_chapters:<br \/>\n            f.write(f&#034;{chapter_title}\\\\n&#034;)<br \/>\n            f.write(chapter_content)<br \/>\n            f.write(&#034;\\\\n\\\\n&#034;)<\/p>\n<p>    print(f&#034;\\\\n\u6240\u6709\u7ae0\u8282\u90fd\u5df2\u7ecf\u722c\u53d6\u4fdd\u5b58\u5230&#xff1a;{os.path.abspath(filepath)}&#034;)<\/p>\n<p>def crawl_all_chapters():<br \/>\n    &#034;&#034;&#034;\u722c\u53d6\u6240\u6709\u7ae0\u8282\u5e76\u5408\u5e76\u4fdd\u5b58&#034;&#034;&#034;<br \/>\n    create_save_dir()<br \/>\n    total_chapters &#061; END_SUFFIX_NUM &#8211; START_SUFFIX_NUM &#043; 1<br \/>\n    print(f&#034;\u5f00\u59cb\u722c\u53d6\u300a\u7ea2\u697c\u68a6\u300b\u5168\u5377&#xff0c;\u5171{total_chapters}\u56de&#8230;\\\\n&#034;)<\/p>\n<p>    all_chapters &#061; []  # \u5b58\u50a8\u6210\u529f\u722c\u53d6\u7684\u7ae0\u8282<br \/>\n    failed_chapters &#061; []  # \u5b58\u50a8\u5931\u8d25\u7684\u7ae0\u8282<\/p>\n<p>    for idx, suffix_num in enumerate(range(START_SUFFIX_NUM, END_SUFFIX_NUM &#043; 1)):<br \/>\n        chapter_num &#061; idx &#043; 1<br \/>\n        chapter_url &#061; f&#034;{BASE_URL}hlm{suffix_num}.html&#034;<br \/>\n        print(f&#034;\u6b63\u5728\u722c\u53d6&#xff1a;\u7b2c{chapter_num}\u56de {chapter_url}&#034;)<\/p>\n<p>        # \u83b7\u53d6\u7ae0\u8282\u5185\u5bb9<br \/>\n        chapter_title, chapter_content &#061; get_chapter_content(chapter_url)<\/p>\n<p>        # \u5904\u7406\u722c\u53d6\u7ed3\u679c<br \/>\n        if &#034;\u9519\u8bef\u4fe1\u606f&#034; not in chapter_content and &#034;\u672a\u627e\u5230&#034; not in chapter_content and &#034;\u4e3a\u7a7a&#034; not in chapter_content:<br \/>\n            all_chapters.append((chapter_num, chapter_title, chapter_content))<br \/>\n            print(f&#034;\u7b2c{chapter_num}\u56de\u722c\u53d6\u6210\u529f&#xff1a;{chapter_title}\\\\n&#034;)<br \/>\n        else:<br \/>\n            failed_chapters.append((chapter_num, chapter_content))<br \/>\n            print(f&#034;\u7b2c{chapter_num}\u56de\u722c\u53d6\u5931\u8d25&#xff1a;{chapter_content}\\\\n&#034;)<\/p>\n<p>    # \u4fdd\u5b58\u6210\u529f\u722c\u53d6\u7684\u7ae0\u8282<br \/>\n    if all_chapters:<br \/>\n        save_all_chapters_to_single_file(all_chapters)<\/p>\n<p>    # \u8f93\u51fa\u5931\u8d25\u7ae0\u8282\u6c47\u603b<br \/>\n    if failed_chapters:<br \/>\n        print(&#034;\\\\n\u722c\u53d6\u5931\u8d25\u7684\u7ae0\u8282\u6c47\u603b&#xff1a;&#034;)<br \/>\n        for c_num, error in failed_chapters:<br \/>\n            print(f&#034;  \u7b2c{c_num}\u56de&#xff1a;{error}&#034;)<\/p>\n<p>    print(f&#034;\\\\n\u722c\u53d6\u5b8c\u6210&#xff01;\u6210\u529f\u722c\u53d6 {len(all_chapters)}\/{total_chapters} \u56de&#034;)<\/p>\n<p>if __name__ &#061;&#061; &#034;__main__&#034;:<br \/>\n    crawl_all_chapters() <\/p>\n<p>\u4ecb\u7ecd\u4e00\u4e0b\u4ee3\u7801\u5173\u952e\u5730\u65b9&#xff1a;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"220\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/03\/20260305173544-69a9bef045874.png\" width=\"813\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"165\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/03\/20260305173544-69a9bef05cb30.png\" width=\"999\" \/><\/p>\n<p>\u8fd9\u4e00\u5757\u4ee3\u7801\u662f\u4ece\u7b2c\u4e00\u56de\u76841127\u722c\u5230\u7b2c\u4e00\u767e\u4e8c\u5341\u56de\u76841246<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"212\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/03\/20260305173544-69a9bef070020.png\" width=\"2043\" \/><\/p>\n<p>\u8fd9\u4e00\u5757\u4ee3\u7801\u662f\u5fc5\u8981\u7684\u8bf7\u6c42\u5934\u7ed3\u70b9<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"160\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/03\/20260305173544-69a9bef0996b0.png\" width=\"978\" \/><\/p>\n<p>\u8fd9\u4e00\u5757\u5c31\u662f\u6211\u4eec\u4e4b\u524d\u627e\u5230\u7684\u6b63\u6587\u90e8\u5206&#xff0c;\u5728div class&#061;&#034;grap&#034;\u540e\u9762\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1368\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/03\/20260305173544-69a9bef0ae5f5.png\" width=\"2560\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1368\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/03\/20260305173545-69a9bef1dc3a8.png\" width=\"2560\" \/><\/p>\n<h2>\u4e09&#xff1a;\u5c06\u7ea2\u697c\u68a6\u5207\u5206\u4e3a120\u7bc7<\/h2>\n<p>\u8fd9\u91cc\u6211\u4eec\u722c\u53d6\u7684\u662f\u300a\u7ea2\u697c\u68a6\u300b\u5168\u5377&#xff0c;\u6211\u4eec\u60f3\u8981\u5206\u5377\u600e\u4e48\u529e&#xff0c;\u9996\u5148\u6211\u4eec\u8981\u627e\u6211\u4eec\u5206\u5377\u7684\u4f9d\u636e\u3002\u5728\u8fd9\u91cc\u6211\u4eec\u6bcf\u4e00\u4e2a\u7ae0\u8282\u5f00\u5934\u90fd\u662f&#xff1a;\u7b2cXX\u56de&#xff0c;\u90a3\u4e48\u6211\u4eec\u80fd\u4e0d\u80fd\u7528\u8fd9\u4e2a\u6765\u5207\u5206\u3002\u4f46\u662f\u6709\u4e00\u4e2a\u9700\u8981\u6ce8\u610f\u7684\u70b9&#xff1a;\u7b2cXX\u56de\u7684XX\u662f\u6c49\u5b57\u4e0d\u662f\u963f\u62c9\u4f2f\u6570\u5b57&#xff0c;\u6240\u4ee5\u6211\u4eec\u8fd8\u9700\u8981\u63d0\u524d\u8f6c\u6362\u4e00\u4e0b\u3002<\/p>\n<p>import os<br \/>\nimport re<\/p>\n<p>CHAPTER_HEADER &#061; &#039;\u7b2c&#039;<br \/>\nCHAPTER_SUFFIX &#061; &#039;\u56de&#039;<\/p>\n<p>CHINESE_NUMBERS &#061; {<br \/>\n    &#039;\u96f6&#039;: 0, &#039;\u4e00&#039;: 1, &#039;\u4e8c&#039;: 2, &#039;\u4e09&#039;: 3, &#039;\u56db&#039;: 4,<br \/>\n    &#039;\u4e94&#039;: 5, &#039;\u516d&#039;: 6, &#039;\u4e03&#039;: 7, &#039;\u516b&#039;: 8, &#039;\u4e5d&#039;: 9,<br \/>\n    &#039;\u5341&#039;: 10, &#039;\u767e&#039;: 100}<\/p>\n<p>source_file_path &#061; &#039;.\\\\\\\\\u7ea2\u697c\u68a6\u5168\u5377\\\\\\\\\u7ea2\u697c\u68a6\u5168\u5377.txt&#039;<br \/>\noutput_base_dir &#061; &#039;.\\\\\\\\\u7ea2\u697c\u68a6&#039;<br \/>\ntemp_file_path &#061; &#039;.\\\\\\\\\u7ea2\u697c\u68a6\\\\\\\\\u7ea2\u697c\u68a6\u5206\u5377.txt&#039;<br \/>\nchapter_output_dir &#061; &#039;.\\\\\\\\\u7ea2\u697c\u68a6\\\\\\\\\u7ea2\u697c\u68a6\u5206\u5377&#039;<\/p>\n<p>os.makedirs(output_base_dir, exist_ok&#061;True)<br \/>\nos.makedirs(chapter_output_dir, exist_ok&#061;True)<\/p>\n<p>file &#061; open(source_file_path, encoding&#061;&#039;utf-8&#039;)<br \/>\nflag &#061; 0<br \/>\njuan_file &#061; open(temp_file_path, &#039;w&#039;, encoding&#061;&#039;utf-8&#039;)<\/p>\n<p>chapter_pattern &#061; re.compile(f&#039;{CHAPTER_HEADER}[\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d\u5341\u767e\u96f6]&#043;{CHAPTER_SUFFIX}&#039;)<\/p>\n<p>for line in file:<br \/>\n    if chapter_pattern.search(line):<br \/>\n        chapter_match &#061; chapter_pattern.search(line)<br \/>\n        chapter_name &#061; chapter_match.group() &#043; &#039;.txt&#039;<br \/>\n        path &#061; os.path.join(chapter_output_dir, chapter_name)<br \/>\n        print(path)<br \/>\n        if flag &#061;&#061; 0:<br \/>\n            juan_file &#061; open(path, &#039;w&#039;, encoding&#061;&#039;utf-8&#039;)<br \/>\n            flag &#061; 1<br \/>\n        else:<br \/>\n            juan_file.close()<br \/>\n            juan_file &#061; open(path, &#039;w&#039;, encoding&#061;&#039;utf-8&#039;)<br \/>\n        continue<br \/>\n    juan_file.write(line)<\/p>\n<p>juan_file.close()<br \/>\nfile.close() <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"288\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/03\/20260305173547-69a9bef31c9ab.png\" width=\"1038\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"24\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/03\/20260305173547-69a9bef33efa0.png\" width=\"695\" \/><\/p>\n<p>\u4ee3\u7801\u7684\u8fd9\u4e00\u5757&#xff0c;\u6211\u91c7\u53d6\u7684\u662f\u5c06\u6c49\u5b57\u4e0e\u963f\u62c9\u4f2f\u6570\u5b57\u4e00\u4e00\u5bf9\u5e94&#xff0c;\u7136\u540e\u518d\u5728\u540e\u9762\u4f5c\u4e3a\u53c2\u8003\u8fdb\u884c\u5207\u5206\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1368\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/03\/20260305173547-69a9bef34cd6e.png\" width=\"2560\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1323\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/03\/20260305173548-69a9bef497883.png\" width=\"1632\" \/><\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u6587\u4ece\u722c\u53d6\u300a\u7ea2\u697c\u68a6\u300b\u5168\u5377&#xff0c;\u5230\u5c06\u5176\u5207\u5206\u4e3a120\u7bc7&#xff0c;\u8be6\u7ec6\u7684\u8bb2\u89e3\u5982\u4f55\u64cd\u4f5c\u3002\u4ee5\u6b64\u7c7b\u63a8\u53ef\u4ee5\u722c\u53d6\u300a\u300b\u300a\u897f\u6e38\u8bb0\u300b\u3001\u300a\u4e09\u56fd\u6f14\u4e49\u300b\u7b49\u5176\u4ed6\u6587\u672c&#xff0c;\u6709\u7684\u7f51\u7ad9\u65e0\u6cd5\u5355\u72ec\u722c\u53d6\u5404\u7ae0\u8282&#xff0c;\u672c\u6587\u4e5f\u4f1a\u4ecb\u7ecd\u5982\u4f55\u5c06\u5404\u7ae0\u8282\u5b8c\u6574\u5207\u5206\u3002<br \/>\n\u4e00\u3001\u722c\u53d6\u7ea2\u697c\u68a6\u5168\u5377<br \/>\n1.1\u627e\u5230\u9700\u8981\u722c\u53d6\u7684\u4f4d\u7f6e \u6211\u662f\u5728\u767e\u5ea6\u968f\u4fbf\u627e\u4e86\u4e00\u4e2a\u7f51\u7ad9&#xff1a;https:\/\/hongloumeng.5000yan.com\/<br \/>\n\u5927\u5bb6\u53ef\u4ee5\u81ea\u5df1\u627e&#xff0c;\u6211\u4f1a\u8be6\u7ec6\u4ecb\u7ecd\u6211\u4eec\u722c\u866b\u9700\u8981\u83b7\u53d6\u7684\u4fe1\u606f&amp;#xff0<\/p>\n","protected":false},"author":2,"featured_media":80779,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[81,190,677],"topic":[],"class_list":["post-80797","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-python","tag-190","tag-677"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Python\u4f5c\u4e1a\uff1a\u722c\u866b\u722c\u53d6\u300a\u7ea2\u697c\u68a6\u300b\u5168\u5377\uff0c\u5e76\u5c06\u5176\u5207\u5206\u4e3a120\u7bc7\uff08\u9644\u5b8c\u6574\u6e90\u4ee3\u7801\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/80797.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python\u4f5c\u4e1a\uff1a\u722c\u866b\u722c\u53d6\u300a\u7ea2\u697c\u68a6\u300b\u5168\u5377\uff0c\u5e76\u5c06\u5176\u5207\u5206\u4e3a120\u7bc7\uff08\u9644\u5b8c\u6574\u6e90\u4ee3\u7801\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u672c\u6587\u4ece\u722c\u53d6\u300a\u7ea2\u697c\u68a6\u300b\u5168\u5377&#xff0c;\u5230\u5c06\u5176\u5207\u5206\u4e3a120\u7bc7&#xff0c;\u8be6\u7ec6\u7684\u8bb2\u89e3\u5982\u4f55\u64cd\u4f5c\u3002\u4ee5\u6b64\u7c7b\u63a8\u53ef\u4ee5\u722c\u53d6\u300a\u300b\u300a\u897f\u6e38\u8bb0\u300b\u3001\u300a\u4e09\u56fd\u6f14\u4e49\u300b\u7b49\u5176\u4ed6\u6587\u672c&#xff0c;\u6709\u7684\u7f51\u7ad9\u65e0\u6cd5\u5355\u72ec\u722c\u53d6\u5404\u7ae0\u8282&#xff0c;\u672c\u6587\u4e5f\u4f1a\u4ecb\u7ecd\u5982\u4f55\u5c06\u5404\u7ae0\u8282\u5b8c\u6574\u5207\u5206\u3002 \u4e00\u3001\u722c\u53d6\u7ea2\u697c\u68a6\u5168\u5377 1.1\u627e\u5230\u9700\u8981\u722c\u53d6\u7684\u4f4d\u7f6e \u6211\u662f\u5728\u767e\u5ea6\u968f\u4fbf\u627e\u4e86\u4e00\u4e2a\u7f51\u7ad9&#xff1a;https:\/\/hongloumeng.5000yan.com\/ \u5927\u5bb6\u53ef\u4ee5\u81ea\u5df1\u627e&#xff0c;\u6211\u4f1a\u8be6\u7ec6\u4ecb\u7ecd\u6211\u4eec\u722c\u866b\u9700\u8981\u83b7\u53d6\u7684\u4fe1\u606f&amp;#xff0\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/80797.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-03-05T17:35:50+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/03\/20260305173536-69a9bee81cff6.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/80797.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/80797.html\",\"name\":\"Python\u4f5c\u4e1a\uff1a\u722c\u866b\u722c\u53d6\u300a\u7ea2\u697c\u68a6\u300b\u5168\u5377\uff0c\u5e76\u5c06\u5176\u5207\u5206\u4e3a120\u7bc7\uff08\u9644\u5b8c\u6574\u6e90\u4ee3\u7801\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-03-05T17:35:50+00:00\",\"dateModified\":\"2026-03-05T17:35:50+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/80797.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/80797.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/80797.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Python\u4f5c\u4e1a\uff1a\u722c\u866b\u722c\u53d6\u300a\u7ea2\u697c\u68a6\u300b\u5168\u5377\uff0c\u5e76\u5c06\u5176\u5207\u5206\u4e3a120\u7bc7\uff08\u9644\u5b8c\u6574\u6e90\u4ee3\u7801\uff09\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Python\u4f5c\u4e1a\uff1a\u722c\u866b\u722c\u53d6\u300a\u7ea2\u697c\u68a6\u300b\u5168\u5377\uff0c\u5e76\u5c06\u5176\u5207\u5206\u4e3a120\u7bc7\uff08\u9644\u5b8c\u6574\u6e90\u4ee3\u7801\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/80797.html","og_locale":"zh_CN","og_type":"article","og_title":"Python\u4f5c\u4e1a\uff1a\u722c\u866b\u722c\u53d6\u300a\u7ea2\u697c\u68a6\u300b\u5168\u5377\uff0c\u5e76\u5c06\u5176\u5207\u5206\u4e3a120\u7bc7\uff08\u9644\u5b8c\u6574\u6e90\u4ee3\u7801\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u672c\u6587\u4ece\u722c\u53d6\u300a\u7ea2\u697c\u68a6\u300b\u5168\u5377&#xff0c;\u5230\u5c06\u5176\u5207\u5206\u4e3a120\u7bc7&#xff0c;\u8be6\u7ec6\u7684\u8bb2\u89e3\u5982\u4f55\u64cd\u4f5c\u3002\u4ee5\u6b64\u7c7b\u63a8\u53ef\u4ee5\u722c\u53d6\u300a\u300b\u300a\u897f\u6e38\u8bb0\u300b\u3001\u300a\u4e09\u56fd\u6f14\u4e49\u300b\u7b49\u5176\u4ed6\u6587\u672c&#xff0c;\u6709\u7684\u7f51\u7ad9\u65e0\u6cd5\u5355\u72ec\u722c\u53d6\u5404\u7ae0\u8282&#xff0c;\u672c\u6587\u4e5f\u4f1a\u4ecb\u7ecd\u5982\u4f55\u5c06\u5404\u7ae0\u8282\u5b8c\u6574\u5207\u5206\u3002 \u4e00\u3001\u722c\u53d6\u7ea2\u697c\u68a6\u5168\u5377 1.1\u627e\u5230\u9700\u8981\u722c\u53d6\u7684\u4f4d\u7f6e \u6211\u662f\u5728\u767e\u5ea6\u968f\u4fbf\u627e\u4e86\u4e00\u4e2a\u7f51\u7ad9&#xff1a;https:\/\/hongloumeng.5000yan.com\/ \u5927\u5bb6\u53ef\u4ee5\u81ea\u5df1\u627e&#xff0c;\u6211\u4f1a\u8be6\u7ec6\u4ecb\u7ecd\u6211\u4eec\u722c\u866b\u9700\u8981\u83b7\u53d6\u7684\u4fe1\u606f&amp;#xff0","og_url":"https:\/\/www.wsisp.com\/helps\/80797.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-03-05T17:35:50+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/03\/20260305173536-69a9bee81cff6.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/80797.html","url":"https:\/\/www.wsisp.com\/helps\/80797.html","name":"Python\u4f5c\u4e1a\uff1a\u722c\u866b\u722c\u53d6\u300a\u7ea2\u697c\u68a6\u300b\u5168\u5377\uff0c\u5e76\u5c06\u5176\u5207\u5206\u4e3a120\u7bc7\uff08\u9644\u5b8c\u6574\u6e90\u4ee3\u7801\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-03-05T17:35:50+00:00","dateModified":"2026-03-05T17:35:50+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/80797.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/80797.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/80797.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Python\u4f5c\u4e1a\uff1a\u722c\u866b\u722c\u53d6\u300a\u7ea2\u697c\u68a6\u300b\u5168\u5377\uff0c\u5e76\u5c06\u5176\u5207\u5206\u4e3a120\u7bc7\uff08\u9644\u5b8c\u6574\u6e90\u4ee3\u7801\uff09"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/80797","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=80797"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/80797\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/80779"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=80797"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=80797"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=80797"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=80797"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}