diff --git a/function.py b/function.py index ec5c940..12891e2 100644 --- a/function.py +++ b/function.py @@ -107,7 +107,7 @@ def img_to_vector(filename): Returns: - np.array: 二值图像向量。 """ - with open(filename, 'r') as f: + with open(filename, 'r') as f: return np.array([int(char) for char in f.read().strip()]).reshape(1, -1)