The code is as follows:
With the open (' main. Js, encoding='utf8') as fr:
TXT=fr. Read ()
Js=execjs.com running (TXT)
Js. Call (' fun ') # the subprocess. Call in call Popen, but encodeing default is GBK, result in abnormal,
Online to find solution are directly to the source code, there are other more elegant solution?