Enviado em 12/10/2012 - 23:24h
Olá, sou iniciante em python. Gostaria de saber como faço o index.html em python para rodar no browser? Precisa ter a extensão .py (index.py) ? Desde já agradeço.
Enviado em 12/10/2012 - 23:24h
Enviado em 12/10/2012 - 23:42h
Enviado em 13/10/2012 - 17:00h
Enviado em 13/10/2012 - 18:14h
<IfModule dir_module>
DirectoryIndex index.html index.php index.py
</IfModule>
1 #!/usr/bin/env python
2 print "Content-type: text/html"
3 print
4 print "<html><head><title>Python como script CGI</title></head>"
5 print "<body>"
6 print "<h1>Hello World! Python</h1"
7 print "</body> </html>"
Enviado em 13/10/2012 - 19:15h
Enviado em 05/02/2015 - 23:16h
Enviado em 23/09/2016 - 20:44h
Entre na sua conta para responder.