问题原因:transformers 的版本号不兼容 处理方法: 将 from transformers import BertTokenizer 改为 from pytorch_transformers import BertTokenizer