读取txt文件 一、 file_4=open('1.txt','r') #open为内置函数 con_4=file_4.read() #读入字符串,并赋值 file_4.close() #释放所打开资源 print(con_4) 二、