python格式“array,list,str”的互相转换(代码实例)
程序员文章站
2022-11-09 09:19:14
python格式“array,list,str”的互相转换(代码实例)
#numpy的array转list
left_specturm_train.tolist()...
python格式“array,list,str”的互相转换(代码实例)
#numpy的array转list left_specturm_train.tolist() 用to.list()既可 #list转numpy的array a = np.array(b) #字符串转list list_convert = a.split() # #list转str str_convert = ''.join(list)
推荐阅读