Here is a sample script without argparse implementation:

from sys import argv
script, filename = argv

foo = "This line was written by a Python script."

with open(filename, 'a') as file:
    file.write(foo)


I find argparse hard. Just give me a startup. How can I make a asgparse version?
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to