Passing input from html to python and back

前端 未结 4 987
再見小時候
再見小時候 2021-01-03 06:48

I need to make a webpage for an assignment, it doesn\'t have to be uploaded to the web, I am just using a local .html file. I did some reading up and came up with the follow

4条回答
  •  再見小時候
    2021-01-03 07:30

    I'm new to both HTML and Python, but as far as I know HTML doesn't have to be indented. This means that you can pass a lot of HTML code in one python print. You can actually print a whole HTML code in one line.

    I'm printing lists into html tables with for loops. The HTML code is not nice, but it's working. I guess you only need them to be temporary, as I do.

    Cheers!

提交回复
热议问题