SyntaxError:Python脚本中意外的保留字
在尝试运行Python脚本时,我遇到以下奇怪的堆栈错误:SyntaxError:Python脚本中意外的保留字,python,Python,在尝试运行Python脚本时,我遇到以下奇怪的堆栈错误: (function (exports, require, module, __filename, __dirname) { import simplejso ^^^^^^ SyntaxError: Unexpected reserved word at exports.runInThisContext (vm
(function (exports, require, module, __filename, __dirname) { import simplejso
^^^^^^
SyntaxError: Unexpected reserved word
at exports.runInThisContext (vm.js:73:16)
at Module._compile (module.js:443:25)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Function.Module.runMain (module.js:501:10)
at startup (node.js:129:16)
at node.js:814:3
为什么导入是一个意外的关键字?检查您的终端。您可能正在运行
node
,而不是python
大量的node.js
错误以及回溯看起来一点也不像Python这一事实都没有让你知道吗?