Hello World.

"""
HelloWorld example using TensorFlow library.
"""
from __future__ import print_function

import tensorflow as tf

hello = tf.constant("Hello, TensorFlow!")
sess = tf.Session()
print(sess.run(hello))
# b'String': 'b'表示字节符。




if __name__ == "__main__":
    pass
上一篇:tensorflow安装


下一篇:SDUWH2019-2020寒假python实训--Chp4.2