2018-10-3:获取字符串中人名

def getName(srcStr):
a=srcStr.split("the name is ")[1].split(",")[0]
return a

b='A old lady come in, the name is limaol, level 94454'

print(getName(b))

你可能感兴趣的:(2018-10-3:获取字符串中人名)