📜  python获取字符串中引号之间的元素 - Python代码示例

📅  最后修改于: 2022-03-11 14:46:03.193000             🧑  作者: Mango

代码示例2
import re
foo = 'SetVariables "a" "b" "c" '
bar = re.findall('"([^"]*)"', foo)

print(bar)
# ['a', 'b', 'c']