我想将已经缩进的Python代码/整个函数和类复制到IPython中。每当我尝试缩进时,都会收到以下错误消息:
IndentationError: unindent does not match any outer indentation level (<ipython-input-23-354f8c8be51b>, line 12)
If you want to paste code into IPython, try the %paste and %cpaste magic functions.