37,720
社区成员
发帖
与我相关
我的任务
分享
Python 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> import re
>>> s='asa02cid=333fsdf'
>>> m = re.search('=(\d+)', s)
>>> if m:
print m.groups()
('333',)
>>>