Re: How to understand '_' in these tests?

2015-06-01 Thread random832
On Tue, Jun 2, 2015, at 00:18, fl wrote: Hi, I just know that '_' is the last result in the Python interpreter. I feel that it is like 'ans' in Matlab. When I run the following commands. The result of '_' are always '4'. Because I have tried several commands, such as reversed('fred'),

Re: How to understand '_' in these tests?

2015-06-01 Thread Chris Angelico
On Tue, Jun 2, 2015 at 2:18 PM, fl rxjw...@gmail.com wrote: Because I have tried several commands, such as reversed('fred'), xx and rx, '4' are always there. What is your explanation about the following? Thanks, reversed('fred') reversed object at 0x02A8DD50 _ '4' _ '4' xx

How to understand '_' in these tests?

2015-06-01 Thread fl
Hi, I just know that '_' is the last result in the Python interpreter. I feel that it is like 'ans' in Matlab. When I run the following commands. The result of '_' are always '4'. Because I have tried several commands, such as reversed('fred'), xx and rx, '4' are always there. What is your