How do I create a webpage with buttons that invoke various Python scripts on the system serving the webpage?

后端 未结 9 1594
生来不讨喜
生来不讨喜 2020-12-25 13:34

I\'m a hobbyist (and fairly new) programmer who has written several useful (to me) scripts in python to handle various system automation tasks that involve copying, renaming

9条回答
  •  难免孤独
    2020-12-25 14:21

    If you're now using Python 3, print is a function requiring parenthesis.

    #!/Python34/python
    print ("Content-type: text/html\n")
    print ("")
    print ("")
    print ("Hello World from Python Script.")
    print ("")
    

提交回复
热议问题