擅长:python、mysql、java
<p>有趣的小例子问题-我用它来创建一个<a href="http://pytest.org/latest/example/capture.html#working-and-comparing-against-print-output" rel="nofollow">print/capture/diffcompare solution using pytest</a>。请注意,这个例子高级地使用了pytest特性,但是这些特性是链接的,并有完整的文档记录,在许多其他情况下也很有用。实际上,这个解决方案需要不到当前顶级解决方案一半的代码,而且您可能会发现能够有选择地运行测试或其他一些<a href="http://pytest.org" rel="nofollow">other pytest features</a>的代码是很不错的。在</p>