博客园 :: :: 新随笔 :: :: :: 管理 ::

python3读取文件

 

#coding:utf-8

rfile = open('test.txt','r')
str=[]
for x in rfile:
    str = x.split(',')
for x in str:
    print (chr(int(x)),end='')
rfile.close()

  

posted on 2014-12-05 11:12  #include<stdio.h>  阅读(842)  评论(0)    收藏  举报