file - Why do I get this output? (Python) -


numbers.txt has 2 lines: 123 , 456

when run this:

list = open('numbers.txt').read().splitlines() print list 

it gives me output:

['{\rtf1\ansi\ansicpg1252\cocoartf1404\cocoasubrtf340', '{\fonttbl\f0\fswiss\fcharset0 arialmt;}', '{\colortbl;\red255\green255\blue255;}', '\paperw11900\paperh16840\margl1440\margr1440\vieww8860\viewh6060\viewkind0', '\deftab720', '\pard\pardeftab720\sl480\sa144\partightenfactor0', '', '\f0\fs32 \cf0 \expnd0\expndtw0\kerning0', '123\', '456}']


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

post - imageshack API cURL -

dataset - MPAndroidchart returning no chart Data available -