将变形字符串以负外观分隔
原文:pyparsing transform_string with negative lookahead
原文:pyparsing transform_string with negative lookahead
我试图用 $varname 语法来实施简单的 shell 风格字符串变量内插, 使用 pyparsing 。 例如, 如果我有一个值为“ 巴 ” 的变量 Foo, 然后转换“... ” 。