这行在python中做什么?你知道吗
user_magics = Instance('IPython.core.magics.UserMagics', allow_none=True)
请注意,UserMagics
是在IPython.core.magics.__init__.py
中定义的空类,如下所示:
@magics_class
class UserMagics(Magics):
"""Placeholder for user-defined magics to be added at runtime.
上面的定义和这个定义有什么区别?你知道吗
user_magics = UserMagics()
注意,正如Blender在下面指出的,这是trailets包的一部分,而不是基本Python。你知道吗
Instance
是^{下面是这个包的一个示例,具体使用
Instance
:相关问题 更多 >
编程相关推荐