首页 > 编程语言 > 详细

python3读取文件

时间:2014-12-05 12:27:56      阅读:395      评论:0      收藏:0      [点我收藏+]

bubuko.com,布布扣bubuko.com,布布扣

 

#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()

  

python3读取文件

原文:http://www.cnblogs.com/jhcla/p/4146211.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!