I am currently looking for a solution to print output of Python script to Text Area of the HTML page. I am unable to convert my ideas into code :) so i need a favour from the experts
My requirement is I have a form. a button and a Text area. When i click on the button it should execute the python code say helloworld.py and return the result "hello world". This text "hello world" should then be pasted on to my Text Area.
I am starting a local http server using python -m http.server 7777. The code helloworld.py too resides on my localmachine.
localhost:7777/index.html brings up textArea and button. This is all i could figure out. Can someone help me with this setup.
Thanks, Sriram
Aucun commentaire:
Enregistrer un commentaire