does python gives interactivity as javascript?
I want to add interactivity like clicks, hover, onpage load() to a webpage, if i use python for generating xhtml, will python give essential flavors like javascript??
I'm bit confused and starter in python for web development, so is there need to include o开发者_如何学编程ld javascript into python or the python only can handle interactivity, events as javascript?
When you use Python for web development, you use it server-side (like PHP). It's not for client-side programming in the same way that JavaScript is. The vast majority of browsers only support JavaScript for client-side programming.
If you want client-side code on a site that's using Python on the server, it still has to use JavaScript on the client.
(For completeness, there is (or used to be) a way to use Python on the client side by installing PyWin32, but then your site would only work for people with that software installed and configured. I'd also be very dubious about its security.)
精彩评论