gpt4 book ai didi

python - 用于数字提取的正则表达式在 python 中不起作用

转载 作者:太空宇宙 更新时间:2023-11-04 10:25:15 27 4
gpt4 key购买 nike

<分区>

我有这个regex

但是在 python2.7 中运行它会得到 None,这是为什么?

>>> fo = re.match('\.(\d+)\.', '/players/player.34360.html')
>>> type(fo)
<type 'NoneType'>
>>>

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com