from microbit import *
while True:
water _ level=pin1.read_ analog () #将pl引脚的模拟值设为变量“ water_ level”
if water _ level<300:
display show(Image. SAD)
else:
display. show(Image. HAPPY)
A.LED灯先显示“伤心”,然后再显示“开心” | B.LED灯显示“伤心” |
C.LED灯先显示“开心”,然后再显示“伤心” | D.LED灯显示“开心” |

同类型试题

y = sin x, x∈R, y∈[–1,1],周期为2π,函数图像以 x = (π/2) + kπ 为对称轴
y = arcsin x, x∈[–1,1], y∈[–π/2,π/2]
sin x = 0 ←→ arcsin x = 0
sin x = 1/2 ←→ arcsin x = π/6
sin x = √2/2 ←→ arcsin x = π/4
sin x = 1 ←→ arcsin x = π/2


y = sin x, x∈R, y∈[–1,1],周期为2π,函数图像以 x = (π/2) + kπ 为对称轴
y = arcsin x, x∈[–1,1], y∈[–π/2,π/2]
sin x = 0 ←→ arcsin x = 0
sin x = 1/2 ←→ arcsin x = π/6
sin x = √2/2 ←→ arcsin x = π/4
sin x = 1 ←→ arcsin x = π/2

