Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
import re, sys m = re.sub('(','',m)
"(",")" をクリアしたい。どうすればいいですか?
この単純なことに正規表現を使用しないでください。翻訳を使用:
Python 文字列ドキュメント
>>> str = "This is a (string) (example)..." >>> str.translate(None, "()") 'This is a string example...' >>>