mirror of
https://github.com/micropython/micropython.git
synced 2026-05-01 13:20:14 +02:00
c1513a078d
Signed-off-by: Damien George <damien@micropython.org>
9 lines
307 B
JavaScript
9 lines
307 B
JavaScript
import(process.argv[2]).then((mp) => {
|
|
mp.loadMicroPython().then((py) => {
|
|
py.runPython("1");
|
|
py.runPython("print('hello')");
|
|
py.runPython("import sys; print(f'hello from {sys.platform}')");
|
|
py.runPython("import collections; print(collections.OrderedDict)");
|
|
});
|
|
});
|