推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
clintme
V2EX  ›  Python

求助一个新手问题。

  •  
  •   clintme · Apr 19, 2024 · 4151 views
    This topic created in 901 days ago, the information mentioned may be changed or developed.

    用 python PyPDF2 组件读取 pdf 文件,如何区分出真实的段落和每一行的分割呢,都是用\n 表示的,全部替换的话就失去段落了。

    2 replies  •  2024-04-20 09:18:46 +08:00
    caomu
        1
    caomu  
       Apr 20, 2024 via Android
    clintme
        2
    clintme  
    OP
       Apr 20, 2024
    用正则搞定了,感谢
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   930 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 23:09 · PVG 07:09 · LAX 16:09 · JFK 19:09
    ♥ Do have faith in what you're doing.