Spyder中内嵌的IPython Console自动续行而不运行的问题

从别处复制好的代码,粘贴到Ipython Console运行。
有时会在按下回车键后自动在下一行添加续行符...:却不运行,有时会在按下回车键后运行。
此时按下shift+enter可以运行.

Spyder 4.1.3
Python 3.6.10 |Anaconda, Inc.| (default, May  7 2020, 19:46:08) [MSC v.1916 64 bit (AMD64)]
IPython 7.13.0 -- An enhanced Interactive Python.

运行的代码类似于计时代码
python中的计时器:timeit - 拉风的汤姆 - 博客园
参考:

原文地址:https://www.cnblogs.com/lingr7/p/12925608.html