推荐学习书目
› 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
911speedstar
V2EX  ›  Python

gitbook 怎么打出字符串呢?

  •  
  •   911speedstar · Apr 5, 2019 · 2721 views
    This topic created in 2734 days ago, the information mentioned may be changed or developed.
    要用正则去匹配文本,已经写好了正则
    ret=re.sub('<\w+>|</\w+>|\s|&nbsp;','',content)

    content = '''
    <h3 class="description">职位描述:</h3>
    <div>
    <p>岗位要求:</p>
    <p>1、负责基于自动导航产品的 SDK 代码开发维护工作;&nbsp;</p>
    <p>2、负责机器人产品后台管理系统开发维护工作;&nbsp;</p>
    <p>3、根据项目具体要求,完成相关联技术项目的设计与开发。</p>
    <p><br></p>
    '''

    无奈在 gitbook editor 中,这些标签都被解析了,无法打出字符串 content 来。
    求问,怎么在 gitbook editor 中打出这个字符串呢
    2 replies  •  2019-04-05 17:45:22 +08:00
    junjieyuanxiling
        1
    junjieyuanxiling  
       Apr 5, 2019
    额......\能转义吗?
    junjieyuanxiling
        2
    junjieyuanxiling  
       Apr 5, 2019 via Android
    还有<pre>
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2627 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 15:24 · PVG 23:24 · LAX 08:24 · JFK 11:24
    ♥ Do have faith in what you're doing.