摘要:
import numpy as nparray1 = np.array([1,2,3,4])print(array1)array2 = np.array((1,2,3,4))print(array2)array3 = np.array([[1,2,3,4], [5,6,7,8]])print(arr 阅读全文
摘要:
# 遍历当前目录下所有文件 def read_file(path): if os.path.isdir(path): file_dirs = os.listdir(path) for file_dir in file_dirs: if os.path.isdir(os.path.join(path, 阅读全文