这个应该很快
我正在做一个re.split并且想在同一行上使用多个结果。
Y«为了简化它,见下文:
import re
string = "Hello world my name is richard"
print (re.split('\s+', string)[1])
现在我想使用 1 和 3 而不是只使用结果“1”所以“世界名称”
这可能吗 ?
这个应该很快
我正在做一个re.split并且想在同一行上使用多个结果。
Y«为了简化它,见下文:
import re
string = "Hello world my name is richard"
print (re.split('\s+', string)[1])
现在我想使用 1 和 3 而不是只使用结果“1”所以“世界名称”
这可能吗 ?