import re text = 'head[#f]i[#r#s[t#]c[#second#]tail' for m in re.finditer('\[#(.*?)#\]', text): print(m.group(1)).
確定! 回上一頁