如何解决代码中的关键字错误?

时间:2019-05-28 07:36:28

标签: python error-handling scipy

lrPAN = scipy.io.loadmat('E:\TEST_CODE_240519\Input.mat')
lrPAN_input = lrPAN["Input"]

hrPAN = scipy.io.loadmat('E:\TEST_CODE_240519\Target.mat')
hrPAN_input = hrPAN["Target"]

[patch_size, number_of_patches] = lrPAN_input.shape
Keyerror:lrPAN_input = lrPAN["Input"]

KeyError: 'Input'

0 个答案:

没有答案