IndexError('列表分配索引超出范围')

时间:2018-11-29 11:53:32

标签: index-error

def fan_mean():
rqst = []
usr_rqst = input('Please enter the numbers, one in each line: \n ')
while usr_rqst != "":
    rqst.append(float(usr_rqst))
    usr_rqst = input("")
if rqst == []:
    return None

当我测试它时,我收到:IndexError('列表分配索引超出范围')

0 个答案:

没有答案