我是python新手,有人能给我解释一下这段代码吗?你知道吗
TRAIN_CSV = './train1.csv' # this comtains 100 entries
TEST_CSV = './test1.csv' # this contains 50 entries
train_df = pd.read_csv(TRAIN_CSV)
test_df = pd.read_csv(TEST_CSV)
for dataset in [train_df, test_df]: # what does this mean here
do something
在本例中,括号表示列表。因此,您将遍历仅由两个元素
train_df
和test_df
定义的列表。你知道吗相关问题 更多 >
编程相关推荐