0

我正在尝试运行一个 python 脚本来聚合 HDF5 数据文件。但它显示一个错误。有人能弄清楚吗?我是 python 新手。任何帮助将非常感激。下面给出的程序

import sys
import h5py
import numpy

Files = sys.argv[1:]  # get filename from command line

FirstFid = h5py.File(Files[0],'r') # Open first HDF5 file

FileInfo = {}

错误是

Traceback (most recent call last):
  File "D:\nasa\nasa_god.py", line 11, in <module>
    FirstFid = h5py.File(Files[0],'r') # Open first HDF5 file
IndexError: list index out of range
4

0 回答 0