の括弧を見つけるがここ</p> <p>を文字列パイソン
location1
{
type uniform;
axis y;
start (1000 -300 0.05);
end (1000 9 0.05);
nPoints 3000;
}
を次のように私は現在の文字列を持っていると私はlocationStringそれを呼びました。
import re
kwSe='('
kwEe=')'
kwS=[match.start() for match in re.finditer(kwSe,str(locationString))]
kwE=[match.start() for match in re.finditer(kwEe,str(locationString))]
を次のように私は、この文字列内(両方とも「(」&「)」)すべてのブラケットのすべてのインデックスを見つけようとしていますが、それは仕事をdoesnot、誰でも助けることができますか?
ご質問にエラーメッセージを含めてください。また、Googleにエラーメッセージを含めてください。 –
[Unbalanced parenthesis python](https://stackoverflow.com/questions/10318248/unbalanced-parenthesis-python)の複製があります –
ファイル形式を解析するPythonパッケージはありませんか? – Blender