def test_basic(self):
"""Basic test of array2string."""
a = np.arange(3)
assert_(np.array2string(a) == '[0 1 2]')
assert_(np.array2string(a, max_line_width=4) == '[0 1\n 2]')
test_arrayprint.py 文件源码
python
阅读 25
收藏 0
点赞 0
评论 0
评论列表
文章目录