摘要: import numpy as np # Save dictionary = {'hello':'world'} np.save('my_file.npy', dictionary) # Load read_dictionary = np.load('my_file.npy').item() pri 阅读全文
posted @ 2020-08-23 23:41 Picassooo 阅读(6459) 评论(0) 推荐(0)
摘要: 方法一 摘自Python查找列表中某个元素返回所有下标 方法二 name = ['hello', 'world', 'a', 'b', 'c', 1, 2, 3, 'hello', 'world', 'a', 'b', 'c', 1, 2, 3] first_pos = 0 for i in ran 阅读全文
posted @ 2020-08-23 21:56 Picassooo 阅读(7388) 评论(0) 推荐(0)