我有一个缓存中的学生列表,我想更新一个项目,我该怎么做。 public class Student
{
int id;
string name;
string address;
}
public void updateStudent(Student st)
{
var student = _cache.Get(CacheVariable.cache
我需要把所有从该列表中的最小元素索引: A = [5,2,1,5,6,1,7,9,2]
minimo = min(A)
#print minimo
indexArray = []
for elem in A:
#print elem
if elem == minimo:
indexArray.append(A.index(elem))
print in