globで複数の拡張子を取得する方法 2020年11月8日 / 1 min read View more blogs with the tag python Table of Contents #はじめに #方法 はじめに globで複数の拡張子を取得する方法をご紹介します。 方法 他にも色々やり方はあると思いますが、extend()でつなげる方法で。 import glob files = glob.glob('\*.htm')files.extend(glob.glob('\*.html'))