在Vscode运行下述代码的时候,报错:Object arrays cannot be loaded when allow_pickle=False
from keras.datasets import imdb
from keras.preprocessing import sequence
max_features = 10000
# Number of words to consider as features(作为特征的单词个数)
max_len = 500
# cut texts after this number of words (among top max_features most common words)
# 在这么多单词之后截断文本(这些单词都属于前 max_features 个最常见的单词)
print('Loading data...')
(x_train, y_train), (x_test, y_test) = imdb.load_data(num_words=max_features)
print(len(x_train), 'train sequences')
print(len(x_test), 'test sequences')
print('Pad sequences (samples x time)')
x_train = sequence.pad_sequences(x_train, maxlen=max_len)
x_test = sequence.pad_sequences(x_test, maxlen=max_len)
print('x_train sh