如何在python中读出以\r\n为结尾(Dos格式)的一行? ... text = reader.read()#全部内容读成字符串lines = text.split('\r\n')#处理一下就得到行数组了print(lines).
確定! 回上一頁