我想將已縮進的Python代碼/整個函數和類複製到IPython中。每次我試圖縮進被搞砸了,我得到以下錯誤消息:IPython的魔術%paste如何工作?
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.
我知道,這是可能已經在stackoverflow上,但在3次搜索後沒有找到它,所以我添加了我自己的版本。 – Framester