图 a
图 b
while True:
temp=round((pin1.read_analog ()/1024)*3000/10.24,1)
errno,resp=Obloq.get("input?id=1&val="+str(temp),10000)
if errno == 200 :
display.show (str(resp))
if resp =="1" :
pin8.write_digital(1)
else:
pin8.write_digital(0)
else:
display.show (str(errno))
sleep(1000*5)
sum+=a[i]
ave=sum/10
B . for i in a[-10:] :sum+=i
ave=sum/10
C . i=90while i<=99 :
sum+=a[i]
i+=1
ave=sum/10
D . i=-1while i>=-10 :
sum+=a[i]
ave=sum/10