def test_style_keyword(self):
"""This should only apply to 0-D arrays. See #1218."""
stylestr = np.array2string(np.array(1.5),
style=lambda x: "Value in 0-D array: " + str(x))
assert_(stylestr == 'Value in 0-D array: 1.5')
test_arrayprint.py 文件源码
python
阅读 27
收藏 0
点赞 0
评论 0
评论列表
文章目录