Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

CaptainZap

macrumors regular
Original poster
Jan 17, 2007
170
0
How come it seems when Python outputs things to Terminal, everything is double spaced? Like this is the output from Python
picture4ta5.png


And this is from the cat command
picture5ik1.png


And yes, it is an ice cream cone. Anyways, is there a way to change this?
 

CaptainZap

macrumors regular
Original poster
Jan 17, 2007
170
0
If you had this in a text file
Code:
     .-"`'"-.
   /        \
   |        |
   /'---'--`\
  |          |
  \.--.---.-./
  (_.--._.-._)
    \=-=-=-/
     \=-=-/
      \=-/
       \/

And then used this Python code
Code:
for line in open('textfile.txt','r'):
	print line

It looks like the first picture, and then this looks like the second picture

Code:
cat textfile.txt
 

CaptainZap

macrumors regular
Original poster
Jan 17, 2007
170
0
Well played sir, thank you. I had read that too, I just thought it allowed you to write to the same line :p
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.