问在python中将infix转换为prefixEN我所看到的,加上括号中的子句,是一个递归问题,迫切需要一个递归解决方案。下面是对你的程序的重新思考,它可能会给你一些关于如何重构它的想法,即使你不相信我的递归论点:在编程中,有时我们需要将数字转换为字母,例如将数字表示的年份转换为对应的字母表示,或者将数字编码转换为字母字符。Python 提供了多种方法来实现这种转...
name-prefixing (so func(x y) is the same as (func x y)), and infix support. In the process of creating sweet-expressions, I went through many alternatives, and wrote down in this paper what I learned as I went. It turns out that many people have tried to solve this problem but ...