Find the next word after a keyword each time it's encountered

前端 未结 0 1236
悲哀的现实
悲哀的现实 2020-12-07 04:05
string = "Is your name Jack ? Wasn\'t your name Matthew ?"
split_string = string.split()
find_names = split_string[split_string.index("name") +1]         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题