在很多符号数学系统中,例如Matlab或Mathematica,可以使用类似的变量Ans或%检索上次计算的值。Python shell中是否有类似的工具?
Ans
%
发布于 2018-03-22 13:37:20
下划线。
>>> 5+5 10 >>> _ 10 >>> _ + 5 15 >>> _ 15
https://stackoverflow.com/questions/-100003662
相似问题