python-基础语法-list、array、set、tuple转换

list、array、set、tuple转换方式:python list转array a1 = np.array(l1)   array转listspa l1 = a1.tolist() list转setcode s1 = set(l1)   set转list l1 = list(s1) list转tuple t1 = tuple(l1)   tupel转list l1 = list(t1) ar
相关文章
相关标签/搜索