我一直在尝试使用 ipython 终端中的可编写脚本的可视化工具mayavi。Mayavi 使用wx
后端,因此我调用魔术函数只是为了检查地址,然后更改 gui 并再次检查地址以确保更改已生效(虽然我知道它有点没用):
In [1]: %gui
Out[1]: <CFunctionType object at 0x03491D50>
In [2]: %gui wx
Out[2]: <wx._core.App; proxy of <Swig Object of type 'wxPyApp *' at 0x33a8ea8> >
In [3]: %gui
Out[3]: <CFunctionType object at 0x0354AEB8>
In [4]: %gui
Out[4]: <CFunctionType object at 0x0354AF30>
问题为什么3和4中的地址不同?