pytest 允许assert关键字后面添加任何表达式,如果表达式的值通过了bool转换后等于False,则意味测试失败。 import pytest result = [(1,2,3), (3, 2, ...
確定! 回上一頁