TensorFlow实现Hello world:
(可以通过cmd中pip install tensorflow安装需要的TensorFlow框架)
import tensorflow as tf #加载
message = tf.constant('Hello World!')
with tf.Session() as sess:
print(sess.run(message).decode()) #不sess.run一下不出结果
输出结果(警告内容可忽略):