# coding: UTF-8
blist = []
split_char = ' '
with open('b.txt', 'r') as bf:
blist = [b.strip().split(split_char) for b in bf]
word = '我'
print repr(word)
for bl in blist:
print bl
if word in bl:
print 'blist[%d][%d]' % (blist.index(bl),bl.index(word))
txt文件read出来 按照“\n”分成几行,再把每一行按照空格分开,存到一个列表里就行了。
搜索 就用index吧。