我正在尝试测试pyssh,但是每当我尝试导入它时都会遇到语法错误。在
Python 3.2 (r32:88445, Feb 20 2011, 21:29:02) [MSC v.1500 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> ================================ RESTART ================================
>>>
Traceback (most recent call last):
File "C:\Users\Corey\Desktop\Python\TheOne.py", line 1, in <module>
import SSHController
File "C:\Users\Corey\Desktop\Python\SSHController.py", line 19, in <module>
import pyssh
File "C:\Users\Corey\Desktop\Python\pyssh\__init__.py", line 82
print """User input required for ssh connection.
(Type Ctrl-C to abort connection.)"""
^
SyntaxError: invalid syntax
据我所知,pyssh不支持python3.X,从您收到的错误消息中可以明显看出这一点。在python3.X中,print语句是一个函数。在
相关问题 更多 >
编程相关推荐