tensorflow-hello,world

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Dec 12 18:18:06 2018

@author: myhaspl
"""

import tensorflow as tf 
hello=tf.constant("hello,world")
sess=tf.Session()
print(sess.run(hello))
sess.close()

b'hello,world'

猜你喜欢

转载自blog.51cto.com/13959448/2329632