Reference article :Python How to call js function ?_wxf_csdn The blog of -CSDN Blog _python call js function
First, through experiments , First of all node Running in the environment can , And then in py Use... In the document execjs call , Found to work .
That's it windows When the system uses the command line to call ,gdk Auto Code , This is directly over here python Of lib In the library subprocess In the init Settings in from encoding=None Change it to encoding="utf-8", Here's the picture , So you can run .