[liu@localhost systemManager]$ ./ptest002.py 执行结果如下 ./ptest002.py: line 2: import: command not found ./ptest002.py: line 4: syntax error near unexpected token `(' ./ptest002.py: line 4: `def uname_func():' 解决办法: [liu@localhost systemManager]$ python ./ptest002.py 就可以了 |
|