为什么在Python的html文件中,用<script> </script>在输入内容的时候不给我提示了

img


有什么办法能够像下面这个图里面让它写var了后会有颜色变化,这个是在pycharm里写的

img

你的是pycharm吧,可以设置一下代码提示功能,参考
https://blog.csdn.net/weixin_30994671/article/details/117947738

<script> </script> 是代表里里面是js 脚本, 不会显示在浏览器页面的。