1
2
3
4
xv<-1:100
min(abs(xv-108))
abs(xv-108)==min(abs(xv-108))#==:判断是否相等,自己敲,从里到外剥茧似的看代码
which(abs(xv-108)==min(abs(xv-108)))#