On the basis of analyzing customer's choice behavior, this paper constructs a utility function of port and obtains an equilibrium pricing strategy before and after competition and cooperation by applying Nash equilibrium. In addition, it also analyzes the impact of hinterland traffic condition on the competition and cooperation between ports. The analyzed results demonstrate that with the improvement of hinterland traffic condition, part of ports use cooperation strategy, which can not only improve the overall profit and share of the cooperative ports, but also can enhance the interest and market share of non-competitive ports so that the improvement of overall interest and market share of regional port group can be realized.