【问题标题】:What property returns the regular expression when re.compile is called? [duplicate]调用 re.compile 时,什么属性返回正则表达式? [复制]
【发布时间】:2008-10-10 01:55:27
【问题描述】:
def foo ():
   x = re.compile('^abc')

   foo2(x)

def foo2(x):

如何让 x 返回'^abc'?在以下代码中

logging.info('x is ' + x.???)

【问题讨论】:

    标签: python regex


    【解决方案1】:

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-26
      • 2019-04-20
      • 2015-07-21
      • 1970-01-01
      • 2013-01-12
      • 2014-07-22
      相关资源
      最近更新 更多