f=open('pc_2file.txt') aList=f.read() for i in aList: if i.isalpha(): print i,主要学到了文件处理,和isalpha()函数,呵呵