python: sys is not defined

12 浏览
0 Comments

python: sys is not defined

我有一段在Linux上运行正常的代码,现在我想在Windows上运行它,我导入了sys,但是当我使用sys.exit()时,出现了错误,提示sys未定义。这是代码的开头部分:

0