def PrintArr(arr):
"""
Print an ASCII representation of the array with an up-down flip if the
the cell height is negative.
Int this scenario:
- '-' means masked
- '_' means nodata
- '#' means a number
- '0' means 0
:param arr:
"""
print "\n"
for row in range(arr.shape[0]):
rowStr = ""
for col in range(arr[row].shape[0]):
rowStr += str(arr[row][col])
print "{0}:: {1}".format(row, rowStr)
print "\n"
评论列表
文章目录