0
我有micropython的算术问题。显示在LEDTypeError:不能转换为int - 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)
错误:类型错误:不能转换成int
缺少什么我在这里?
尝试使用'display.scroll(STR(计数器))' – NullUserException