V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
? 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 · 2019-04-05 16:32:57 +08:00 · 1699 次点击
    这是一个创建于 1865 天前的主题,其中的信息可能已经有所发展或是发生改变。
    要用正则去匹配文本,已经写好了正则
    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 条回复  ?  2019-04-05 17:45:22 +08:00
    junjieyuanxiling
        1
    junjieyuanxiling  
       2019-04-05 17:20:06 +08:00
    额......\能转义吗?
    junjieyuanxiling
        2
    junjieyuanxiling  
       2019-04-05 17:45:22 +08:00 via Android
    还有<pre>
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1354 人在线   最高记录 6547   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 23:23 · PVG 07:23 · LAX 16:23 · JFK 19:23
    Developed with CodeLauncher
    ? Do have faith in what you're doing.


    http://www.vxiaotou.com