标签: python
在Python中,有没有办法从函数中访问未评估的调用参数?我基本上试图做相当于R&s的deparse(substitute(x)):
def test(x): print(deparse(substitute(x))) test(2*3)
将打印: ' 2 * 3'