您的位置: 首页 > IT文章 > python数组转列表 python数组转列表 分类: IT文章 • 2024-09-02 21:09:31 >>> import numpy as np >>> a = np.array([[1,2],[3,4]]) >>> b=a.tolist() >>> b [[1, 2], [3, 4]]