記事へのコメント1件
- 注目コメント
- 新着コメント
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています

- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
Grep on elements of a list
I have a list of files names: names = ['aet2000','ppt2000', 'aet2001', 'ppt2001'] While I have fo... I have a list of files names: names = ['aet2000','ppt2000', 'aet2001', 'ppt2001'] While I have found some functions that can work to grep character strings, I haven't figured out how to grep all elements of a list. for instance I would like to: grep(names,'aet') and get: ['aet2000','aet2001'] Sure its not too hard, but I am new to Python update The question above apparently wasn't accurate enough.
2018/04/25 リンク