I don’t understand the principle, please ask God for enlightenment!
Because bar is redefined when called for the second time, and the function does not allow repeated definitions
Repeated call