2018-10-3:获取字符串中人名
2018-10-31 本文已影响0人
种树在此时
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))
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))