- How to extract a specific column from a one-dimensional tuple, (this question still uses the
csv
data in the previous question , download address ), such as:
# 读取前五行元素中每一行中的第五个元素
# 原始文件位置
file_path = "C:/Users/15025/Desktop/Iris.csv"
# 完整数据
[['Id' 'SepalLengthCm' 'SepalWidthCm' 'PetalLengthCm' 'PetalWidthCm'
'Species']
[</