Skip to content

python代码调用问题 #6

Description

@xiaomi2023

现有的python代码调用采用的方法似乎是将一段文本内的调用单独抽离开来并统一执行,但是这样就不能实现一些好玩的功能,比如:

{你的名字是?@name=input()@
#继续
{你好!@name@}
}

我在刚才的更新中新增了解析表达式的功能,调用类Command的run方法时,如果cmd被识别为表达式时,run方法将返回这个表达式的值。希望能将这个值嵌入文本中。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions