Transform Properties

By pressing “n” and bringing up the Transform Properties window, it appears that if you increment “RotX”, an object is rotated around it’s X body frame. If “RotZ” is incremented, the object is rotated around the Z inertial frame (not local). I’m not sure what Y is rotated around when “RotY” is incremented.

Can anyone explain what order and reference the object is using for rotation?

When using the Python script to set the RotX,Y,Z angles have the same effect?

They are the three component of an Euler rotation.
Read this if you are interested in more technicalities: