for i in range(len(s)):
if tmin <= s[i] <= tmax:
continue
c+=1
print("超出适宜温度范围的次数",c)
while i<len(s):
if not(tmin<=s[i]<=tmax):
c+=1
i+=1
print("超出适宜温度范围的次数",c)
for i in s:
if s[i]<tmin or s[i]>tmax:
c+=1
print("超出适宜温度范围的次数",c)
for i in range(len(s)):
if not(s[i]>=tmin and s[i]<=tmax):
c[i]=1
print("超出适宜温度范围的次数”,c)