문제

import system module does not work in python2.7.3 

Python 2.7.3 (default, Mar 13 2014, 11:03:55)

[GCC 4.7.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.

 >>> import system
 Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
    ImportError: No module named system
도움이 되었습니까?

해결책

If you wish for the sys module, try:

import sys

If you're looking for the system call, try:

import os.system
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top