# coding = utf-8
# -*- coding:utf-8 -*-
f=open('name.txt')
data=f.read()
aa=data.split('|')
print aa
print type(aa)
for x in aa:
print x
f2=open('weapon.txt')
for x in f2.readlines():
x = x.strip()
if len(x):
print x
f3=open('sanguo_utf8.txt')
print f3.read().replace('\n','')
def func(file):
print(open(file).read())
func('name.txt')