Html

Ken Seehof kseehof at neuralintegrator.com
Sun Jun 9 01:09:21 EDT 2002


Gold Fish wrote:

> Anyone can tell me how can i run the script with the argumemt 
> such as python 
> example.py -o 
> What i have to write in script.

Use sys.argv.  It should look something like this:

>>> import sys
>>> sys.argv
['example.py', '-o']

> And if i want to render the 
> script in html 
> format hov can i do that

Do you mean render the script itself, or the output of the
script?  If you mean "render the script", you need py2html.  

There are a few versions around.  Google for py2html, or
look at one of these:

http://www.norvig.com/python/py2html.html
http://www.egenix.com/files/python/py2html.py.html

If that is not what you mean, you need to be much more
specific.

- Ken Seehof







More information about the Python-list mailing list