1. 单词预测(多对多) import tensorflow as tf from tensorflow.contrib.seq2seq import sequence_loss from tensorflow.contrib.layers import fully_connected import numpy as np # 使用tensorflow框架,利用循环神经网络训练字符序列,从“hihell”学习输出“ihello”。 # (一)建立字典,有5个字符:h,i,e,l,o idx=['h'