exec#

swordfish.exec(script)#

Execute the given script.

参数:

script (str) -- A string containing the script to be executed.

返回:

The result of executing the script.

返回类型:

Constant

示例

>>> import swordfish as sf
>>> sf.exec("1+2")
Int(3)