如何创建while循环来打开目录,读取不同的目录并抓取目录中的图像
我有这个,但它不起作用
$ TPL ['目录'] = array();
$FP = opendir($PHOTOS_PATH);
while(false !== ($DIR = readdir($FP))){
if ($DIR == "." || $DIR == "..") continue;
$TPL['directory'][]= $DIR;
}
closedir($FP);
答案 0 :(得分:0)
这可能会成功。我没有测试代码
from setuptools import setup, find_packages
requires = [
'numpy==1.14.0',
'google-cloud-storage==1.7.0',
'pandas==0.22.0',
'sqlalchemy-vertica[pyodbc,turbodbc,vertica-python]==0.2.5',
'sqlalchemy==1.2.2',
'apache_beam[gcp]==2.2.0',
'google-cloud-dataflow==2.2.0'
]
setup(
name="dataflow_pipeline_dependencies",
version="1.0.0",
description="Beam pipeline for flattening ism data",
packages=find_packages(),
install_requires=requires
)