f = open('a.txt', 'r') a = f.next().split(' ') f.close b = a[2].split('\'') print b[1]复制代码
print open('a.txt').next().split(' ')[2].split('\'')[1]复制代码