mirror of
https://github.com/micropython/micropython.git
synced 2026-01-06 12:10:13 +01:00
py: Make bytearray a proper type.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
print(bytearray(4))
|
||||
a = bytearray([1, 2, 200])
|
||||
print(type(a))
|
||||
print(a[0], a[2])
|
||||
print(a[-1])
|
||||
print(a)
|
||||
|
||||
Reference in New Issue
Block a user