1796| 1
|
[问题求助] append方法不能使用[程序崩溃,非append问题,已解决] |
# Untitled - By: Lithromantic - 周六 3月 6 2021(点灯鼠提供) import sensor, image, time sensor.reset() sensor.set_pixformat(sensor.RGB565) sensor.set_framesize(sensor.QVGA) sensor.skip_frames(time = 2000) clock = time.clock() while(True): clock.tick() img = sensor.snapshot() imgbytes=img.to_bytes() imgbytes.append([200]) print(imgbytes[-1]) |
© 2013-2024 Comsenz Inc. Powered by Discuz! X3.4 Licensed