This paper investigates the mechanical behaviors of few-layer black phosphorus (FLBP) by using molecular dynamics simulations. Results show that both tensile and compressive behaviors are strongly anisotropic in the armchair and zigzag directions due to the unidirectional puckers in each atomic layer, and that the compressive behavior is dependent on the number of atomic layers. In particular, the compressive and buckling strengths of FLBP can be significantly enhanced by stacking more atomic layers together, while this has little influence on both Young's modulus and tensile strength. It is interesting to found that increasing the number of atomic layers in FLBP or the dimension ratio can lead to a drastically reduced flexibility in armchair direction, showing that both compressive and buckling strengths become higher than those in zigzag direction. It is also demonstrated that the reorientation of FLBP's atomic configuration occurs under certain conditions. The mechanism of deformation underlying the mechanical behaviors of FLBP is also discussed, suggesting that changing the number of atomic layers is an effective way to engineer two-dimensional materials for desired material properties.