摘要:
点击查看代码 import torch from torch import optim import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable from torchvision 阅读全文
摘要:
计数 点击查看代码 #Journey to the west.py import jieba txt = open("西游记.txt", "r", encoding='utf-8').read() words = jieba.lcut(txt) counts = {} for word in wor 阅读全文