#!/usr/bin/ env python
# coding:utf-8


'''
文本分析
测试使用with open 来打开文件
'''
import codecs

# with codecs.open("data/0_simplifyweibo_train.txt",'r',encoding='gb18030')  as f:
with codecs.open("data/3_simplifyweibo_utf8_train.txt", 'rb') as f:
    for line in f:
        print line
    # lines = f.readline()
    # while 1:
    #   lines =f.readline()
    #   # lines =f.readline()
    #   print lines
