代码
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
"""
@Introduce : tensorflow从指定地址下载数据集
@File : demo_load_lris.py
@Time : 2021-03-03 15:36
@Author : xia hua dong
@Tel : 173 179 76823
@Email : 17317976823@163.com
@pip : pip install
"""
import tensorflow as tf
# 鸢尾花数据集路径
TRAIN_URL = "http://download.tensorflow.org/data/iris_training.csv"
file_name = TRAIN_URL.split('/'