1.IndentationError: expected an indented block;
就是该缩进的缩进, python问题。
http://blog.csdn.net/neilhappy/article/details/7724959
2.TypeError: init() got an unexpected keyword argument ‘shape’;
v = tf.get_variable("v", shape=[1], initializer=tf.zeros_initializer);
https://stackoverflow.com/questions/44946189/typeerror-init-got-an-unexpected-keyword-argument-shape
3.AttributeError: module ‘tensorflow’ has no attribute 'variable_scope’
从目前的情况看,很有可能就是TensorFlow安装时,没有安装全。
https://github.com/tensorflow/tensorflow/issues/7285