if __name__=="__main__": get_Y_matrix() solve() gb.YB[0][0]+=0.2 solve()
看了这个? Python变量作用域(全局变量和局部变量) (biancheng.net)
重启Python再运行结果就能更新