我对 micropython 有算术问题。
from microbit import *
counter = 0
while True:
display.show('8')
if accelerometer.was_gesture('shake'):
display.clear()
sleep(1000)
counter = counter + 1
display.scroll(counter)
sleep(10)
LED 上显示的错误:TypeError: can't convert to int
我在这里想念什么?