import tensorflow as tf
a = tf.train.match_filenames_once("./part-r-0000*")
sess = tf.InteractiveSession()
init = (tf.global_variables_initializer(), tf.local_variables_initializer())
sess.run(init)
a.eval()
输出
array(['./part-r-00000', './part-r-00001', './part-r-00002',
'./part-r-00003', './part-r-00004', './part-r-00005',
'./part-r-00006', './part-r-00007', './part-r-00008',
'./part-r-00009'], dtype=object)