py平方根+一个数组里面只有一个数出现一次
#!/usr/bin/python def fun(x,y): res=x*y res_sqrt=res**0.5 return res_sqrt rest=fun(4.3,4.3) print(rest)
def findAppearOne(array):count={}for i in array:if i not in count:count[i]=1else:count[i]+=1res=[]for i in array:if count[i]==1:res.append(i)print(ls)a=(1,2,2,3,3,4,4)findAppearOne(a)
#笔试题目#