OpenMV中的MicroPython不支持cmp函数?
-
代码如下
import sys print(sys.version) print(cmp(1, 1))
错误信息
Traceback (most recent call last): File "<stdin>", line 5, in <module> NameError: name 'cmp' is not defined MicroPython v1.9.2-4442-g8d787e97 on 2018-01-24; OPENMV3 with STM32F765 Type "help()" for more information. >>>
-
python3 不支持cmp函数