NameError: name 'commands' is not defined

python 运行时出现错误:

NameError: name 'commands' is not defined

原因没有导入命令 commands

解决方法:

import commands


你可能感兴趣的:(python)