[cspay-dev] Output browser

Lupescu Grigore lupescu_grigore at hotmail.com
Sun Aug 2 09:45:25 EEST 2009


Salut,

Cum fac mai exact sa fac output-ul din python sa apara in browser ?

Daca creez o pagina html/php cum o pot accesa prin PUTTY ? Sau o accesez cumva prin browser ? Daca da cum ?

Am incercat sa deschid o pagina web folosind python dar nu mi-a mers ...

 

Am folosit urmatorul exemplu :

import webbrowser
import time

webbrowser.open("http://www.pythonware.com")

# wait a while, and then go to another page
time.sleep(5)
webbrowser.open(
    "http://www.pythonware.com/people/fredrik/librarybook.htm"
    )

 

Exemplul este luat de pe internet... Nu merge nici la mine nici pe server...Exemplul este salvat in import/test.py...


O ultima intrebare... ca sa afisez o pagina web banuiesc ca exista o metoda sa pot scrie "direct" in browser nu ? Sau va trebui sa fac un nou fisier .html pe care sa-l deschid cu broswserul ?

 

Multumesc anticipat

_________________________________________________________________
Drag n’ drop—Get easy photo sharing with Windows Live™ Photos.

http://www.microsoft.com/windows/windowslive/products/photos.aspx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rosedu.org/pipermail/cspay-dev/attachments/20090802/9a122343/attachment.htm>


More information about the cspay-dev mailing list