<tfoot id='aeTKr'></tfoot>
  1. <small id='aeTKr'></small><noframes id='aeTKr'>

      <legend id='aeTKr'><style id='aeTKr'><dir id='aeTKr'><q id='aeTKr'></q></dir></style></legend>
        <bdo id='aeTKr'></bdo><ul id='aeTKr'></ul>
    1. <i id='aeTKr'><tr id='aeTKr'><dt id='aeTKr'><q id='aeTKr'><span id='aeTKr'><b id='aeTKr'><form id='aeTKr'><ins id='aeTKr'></ins><ul id='aeTKr'></ul><sub id='aeTKr'></sub></form><legend id='aeTKr'></legend><bdo id='aeTKr'><pre id='aeTKr'><center id='aeTKr'></center></pre></bdo></b><th id='aeTKr'></th></span></q></dt></tr></i><div id='aeTKr'><tfoot id='aeTKr'></tfoot><dl id='aeTKr'><fieldset id='aeTKr'></fieldset></dl></div>

    2. 从Python中的字符串中删除所有非数字字符

      Removing all non-numeric characters from string in Python(从Python中的字符串中删除所有非数字字符)
      <legend id='ieqag'><style id='ieqag'><dir id='ieqag'><q id='ieqag'></q></dir></style></legend>
    3. <i id='ieqag'><tr id='ieqag'><dt id='ieqag'><q id='ieqag'><span id='ieqag'><b id='ieqag'><form id='ieqag'><ins id='ieqag'></ins><ul id='ieqag'></ul><sub id='ieqag'></sub></form><legend id='ieqag'></legend><bdo id='ieqag'><pre id='ieqag'><center id='ieqag'></center></pre></bdo></b><th id='ieqag'></th></span></q></dt></tr></i><div id='ieqag'><tfoot id='ieqag'></tfoot><dl id='ieqag'><fieldset id='ieqag'></fieldset></dl></div>

        <bdo id='ieqag'></bdo><ul id='ieqag'></ul>

          <tbody id='ieqag'></tbody>
        1. <tfoot id='ieqag'></tfoot>

            • <small id='ieqag'></small><noframes id='ieqag'>

              • 本文介绍了从Python中的字符串中删除所有非数字字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我们如何从 Python 中的字符串中删除所有非数字字符?

                How do we remove all non-numeric characters from a string in Python?

                推荐答案

                >>> import re
                >>> re.sub("[^0-9]", "", "sdkjh987978asd098as0980a98sd")
                '987978098098098'
                

                这篇关于从Python中的字符串中删除所有非数字字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                env: python: No such file or directory(env: python: 没有这样的文件或目录)
                How to evaluate environment variables into a string in Python?(如何在 Python 中将环境变量评估为字符串?)
                Python - temporarily modify the current process#39;s environment(Python - 临时修改当前进程的环境)
                Change current process environment#39;s LD_LIBRARY_PATH(更改当前进程环境的 LD_LIBRARY_PATH)
                Reading and writing environment variables in Python?(在 Python 中读写环境变量?)
                When to use sys.path.append and when modifying %PYTHONPATH% is enough(何时使用 sys.path.append 以及何时修改 %PYTHONPATH% 就足够了)
                    <tfoot id='Q5JdC'></tfoot>

                        <tbody id='Q5JdC'></tbody>

                        <bdo id='Q5JdC'></bdo><ul id='Q5JdC'></ul>
                        <legend id='Q5JdC'><style id='Q5JdC'><dir id='Q5JdC'><q id='Q5JdC'></q></dir></style></legend>

                        <i id='Q5JdC'><tr id='Q5JdC'><dt id='Q5JdC'><q id='Q5JdC'><span id='Q5JdC'><b id='Q5JdC'><form id='Q5JdC'><ins id='Q5JdC'></ins><ul id='Q5JdC'></ul><sub id='Q5JdC'></sub></form><legend id='Q5JdC'></legend><bdo id='Q5JdC'><pre id='Q5JdC'><center id='Q5JdC'></center></pre></bdo></b><th id='Q5JdC'></th></span></q></dt></tr></i><div id='Q5JdC'><tfoot id='Q5JdC'></tfoot><dl id='Q5JdC'><fieldset id='Q5JdC'></fieldset></dl></div>
                      • <small id='Q5JdC'></small><noframes id='Q5JdC'>