问题遇到的现象和发生背景
问题相关代码,请勿粘贴截图
运行结果及报错内容
我的解答思路和尝试过的方法
我想要达到的结果
D=np.array([
[0,72,98,133,54,105,55,83,79,140,26,50,121,115],
[72,0,56,97,18,69,52,74,66,111,98,90,108,102],
[98,56,0,123,44,95,78,100,93,137,124,116,134,128],
[133,97,123,0,79,28,113,84,55,70,108,84,97,91],
[54,18,44,79,0,51,34,56,48,93,80,72,90,84],
[105,69,95,28,51,0,85,56,27,42,80,56,69,63],
[55,52,78,113,34,85,0,36,65,126,62,38,107,101],
[83,74,100,84,56,56,36,0,29,90,57,33,71,65],
[79,66,92,55,48,27,65,20,0,61,53,29,42,37],
[140,111,137,70,93,42,126,90,61,0,114,90,72,25],
[26,98,124,108,80,80,62,57,53,114,0,24,95,89],
[50,90,116,84,72,56,38,33,29,90,24,0,71,65],
[121,108,134,97,90,69,107,71,42,72,95,71,0,47],
[115,102,128,91,84,93,101,65,36,25,89,65,47,0]
])
未定义变量 "np" 或类 "np.array"。
matlab这样报错怎么弄呀