import sys
filenames = sys.argv[1:]
def fixline(filename):
text = open(filename).read()
text = text.replace('\n\r','\n')
return text
for file in filenames:
print fixline(file)
This is of course interesting. I have thought about this before: But wouldn't it be more interesting to use (say the orient) language's mindset to set, embedded into the language at its core?
Comments
http://www.chinesepython.org/english/english.html
A simple Python program:
and its translation:Well, I ever! Didn't even realise something like this is even possible! :O
Is it the same for Cyrillic or German or Spanish for that matter?
Blown. Away.
This is of course interesting. I have thought about this before: But wouldn't it be more interesting to use (say the orient) language's mindset to set, embedded into the language at its core?