lyl801013 发表于 2017-4-20 12:56:47

python正则

import re
m = re.match('abc','abcd')
if m is not None:
print m.group()
print re.split(',','a,b,c,d,e,f,g')
abc
['a', 'b', 'c', 'd', 'e', 'f', 'g']
页: [1]
查看完整版本: python正则