首页 > 代码库 > python3读取文件

python3读取文件

 

#coding:utf-8rfile = open(‘test.txt‘,‘r‘)str=[]for x in rfile:    str = x.split(‘,‘)for x in str:    print (chr(int(x)),end=‘‘)rfile.close()

  

python3读取文件