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.
結果に空の文字列が含まれないように、このリスト内包表記に条件を追加することは可能ですか?
words = [regex.sub('\P{alpha}','',word) for word in words]