问题描述:代码没有错,第一次运行不会报错,但是只要出一点错(比如数据超出范围),改正该报错之后就会一直提示如下报错。
syntaxerror: invalid syntax syntaxerror: invalid syntax
解决办法:将终端清空。
问题描述:想要打印程序运行时间,用传统方法报错。
attributeerror: module 'time' has no attribute 'clock'attributeerror: module 'time' has no attribute 'clock'
解决办法:参考如下帖子
https://blog.csdn.net/fyfugoyfa/article/details/113887935https://blog.csdn.net/fyfugoyfa/article/details/113887935