What's the difference between playing basketball and going to the gym?

The difference between playing basketball and going to the gym is:

1, playing basketball is a whole sport, which requires the cooperation of all parts of the body, mainly including: leg, waist, ankle and other exercises, but not as targeted as in the gym;

2, gym fitness is aimed at a certain muscle of the body, more targeted.