micropython: add micropython component
This commit is contained in:
16
components/language/micropython/tests/jni/list.py
Normal file
16
components/language/micropython/tests/jni/list.py
Normal file
@@ -0,0 +1,16 @@
|
||||
import jni
|
||||
|
||||
try:
|
||||
ArrayList = jni.cls("java/util/ArrayList")
|
||||
except:
|
||||
print("SKIP")
|
||||
raise SystemExit
|
||||
|
||||
l = ArrayList()
|
||||
print(l)
|
||||
l.add("one")
|
||||
l.add("two")
|
||||
|
||||
print(l.toString())
|
||||
print(l)
|
||||
print(l[0], l[1])
|
Reference in New Issue
Block a user