kopia lustrzana https://github.com/micropython/micropython
7 wiersze
107 B
Python
7 wiersze
107 B
Python
![]() |
print(exec("def foo(): return 42"))
|
||
|
print(foo())
|
||
|
|
||
|
d = {}
|
||
|
exec("def bar(): return 84", d)
|
||
|
print(d["bar"]())
|