标签: 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('列表分配索引超出范围')