【Python】日本語検索
import re
path = 'list.txt'
with open(path, encoding='utf-8') as f: for line in f: if re.findall('[ぁ-ん]', line): print(line) elif re.findall('[ァ-ン]', line): print(line) elif re.findall('[一-龥]', line): print(line) else: print('', end='')