Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
ytj
on Oct 16, 2013
|
parent
|
context
|
favorite
| on:
C++ has become a scripting language
#Do the same thing in python
from sys import argv
open(argv[2], 'w').writelines(sorted(open(argv[1])))
alexchamberlain
on Oct 16, 2013
[–]
That's not exactly a Pythonic example...
Join us for
AI Startup School
this June 16-17 in San Francisco!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
from sys import argv
open(argv[2], 'w').writelines(sorted(open(argv[1])))