Why do functions always print initial values?

1. I create a, then b object function

2. Change the value of A once in the life cycle