更新 function.py
Gitea Actions Experiment Test / Experiment-Actions (push) Successful in 30s

This commit is contained in:
2024-10-16 22:04:20 +08:00
parent 3a857f265f
commit 6fb937d844
+3 -1
View File
@@ -73,7 +73,9 @@ def img_to_vector(filename):
lines = file.readlines()
n = 0
for line in lines:
for i in range(0, len(line)):
# 去除每行末尾的换行符
line = line.strip()
for i in range(len(line)):
returnVect[0, n] = int(line[i])
n = n + 1
if n >= 1024: