例如
>>> print sess.run(hello)
File "<stdin>", line 1print sess.run(hello)
^
SyntaxError: invalid syntax
原因:python2.7 print 'hello '
python3及以上 print('hello')
由于我的Python version is python 3.6 ,so you know.
z注意细节
例如
>>> print sess.run(hello)
File "<stdin>", line 1SyntaxError: invalid syntax
原因:python2.7 print 'hello '
python3及以上 print('hello')
由于我的Python version is python 3.6 ,so you know.
z注意细节