语料序列进行反转
代碼如下:
Type "help", "copyright", "credits" or "license" for more information.
>>> lists=[[1,2,3],[4,5,6]]
>>> x_train=[x[::-1] for x in x_train]
>>> x_train=[x[::-1] for x in lists]
>>> x_train
[[3, 2, 1], [6, 5, 4]]
?
總結
- 上一篇: ImportError: cannot
- 下一篇: 狂怒2武器位置在哪里呢 《狂怒》HD