运行代码会报错如下:
解决方法:
在import execjs之前写上如下代码:
import subprocess
from functools import partial
subprocess.Popen = partial(subprocess.Popen, encoding='utf-8')
运行代码会报错如下:
解决方法:
在import execjs之前写上如下代码:
import subprocess
from functools import partial
subprocess.Popen = partial(subprocess.Popen, encoding='utf-8')