f=open("D:/names.txt")
for line in f:
    line=line.strip()
    print line.title()
f.close()

相关文章: