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))
本文标题:2018-10-3:获取字符串中人名
本文链接:https://www.haomeiwen.com/subject/fuqotqtx.html
网友评论