。\运算符在Python中是什么意思?

时间:2020-03-03 15:43:05

标签: python tensorflow

我正在通过此github存储库研究TensorFlow

https://github.com/deeplearningzerotoall/TensorFlow/blob/master/tf_2.x/lab-10-1-1-mnist_nn_softmax.ipynb

我不明白train_dataset = tf.data.Dataset.from_tensor_slices((train_x, train_y)).\ shuffle(buffer_size=100000).\ prefetch(buffer_size=batch_size).\ batch(batch_size, drop_remainder=True) 在这里的含义:

{ provide: LOCALE_ID, useValue: 'en-US' }

1 个答案:

答案 0 :(得分:1)

反斜杠用于转义下一个字符,在这种情况下为换行符。这样可以将长通话链拆分为多行。