引包: import tensorflow as tf 常量定义: data1 = tf.constant(10) 变量定义: data2 = tf.Variable(5) #变量需要init初始化 init = tf.global_variables_initializer(