掌控板教程
MicroPython类库
Builtin
array
gc
math
sys
ubinascii
ucollections
uerrno
uhashlib
uheapq
uio
ujson
os
ure
select
usocket
ussl
ustruct
time
uzlib
btree
framebuf
machine
network
ucryptolib
uctypes
micropython
neopixel
random
ntptime
dht
_thread
esp
esp32
onewire
mPython类库
mpython
music
urequests
umqtt.simple
gui
audio
radio
sdcard
bluebit
parrot
ds18x20
MicroPython 语法
machine.display/Image
mpython_classroom_kit
这个模块实现了相应 CPython 模块的一个子集,如下所述。有关更多信息,请参阅原始CPython文档: heapq
T该模块实现堆队列算法。
堆队列只是一个以某种方式存储其元素的列表。
uheapq.
heappush
Push the item onto the heap.
item
heap
heappop
Pop the first item from the heap, and return it. Raises IndexError if heap is empty.
heapify
Convert the list x into a heap. This is an in-place operation.
x