Learing Python, Newbie question

Johannes Gamperl info at devshare.de
Thu Oct 25 05:21:38 EDT 2001


Hello,

i just starting to learn python ... so i've two questions:

1. is there a easy way to test, if a file exists?
2. do you have an example to do a template work for cgi?

   e.g.

   you have this template

   <html>
   ...
   
   %name%  

   ... 
   </html>

   so what i want is, to open this file and replace %name%
   with a variable inside the py-script ...


thx for any help .. :-)
Hannes



More information about the Python-list mailing list