A charging pile, comprising: N charging branches (1, 2), wherein each of the N charging branches comprises a charging gun, a power module configured to supply power for the charging gun, and an intra-branch switch (S2, S6) connected between the charging gun and the power module; K charging controllers, wherein each of the K charging controllers is connected to at least one intra-branch switch, each charging controller is configured to control turn-on and turn-off of the connected intra-branch switch, N ≥ K ≥ 1, and N and K are integers; M interfaces, configured to connect to one or more charging piles other than the charging pile, wherein N ≥ M ≥ 2, and M is an integer; and an interface switch, configured to connect to every two of the M interfaces, wherein each of the N charging branches is connected to one of the M interfaces by using an external switch (S3, S4) included in the charging pile, a charging gun in a charging branch in the charging pile is configured to receive a charging request, and the charging request comprises required power for charging; said charging gun in said charging branch in the charging pile is further configured to forward the charging request to a charging controller connected to said charging gun; said charging controller is configured to determine, based on the received charging request, whether remaining power of the charging pile reaches the required power; said charging controller is further configured to: when the remaining power of the charging pile is less than the required power, determine, based on the remaining power of the charging pile and the required power, shared power required by the charging pile, wherein the shared power is power that needs to be shared by one or more charging piles other than the charging pile with the charging pile; and said charging controller is further configured to: determine a target charging pile from the one or more charging piles based on the shared power, and the target charging pile is a charging pile whose remaining power is greater than or equal to the shared power in the one or more charging piles, wherein the target charging pile is one charging pile that is closest to the charging pile and that is one of one or more charging piles whose remaining power is greater than or equal to the shared power. N charging branches (1, 2), wherein each of the N charging branches comprises a charging gun, a power module configured to supply power for the charging gun, and an intra-branch switch (S2, S6) connected between the charging gun and the power module; K charging controllers, wherein each of the K charging controllers is connected to at least one intra-branch switch, each charging controller is configured to control turn-on and turn-off of the connected intra-branch switch, N ≥ K ≥ 1, and N and K are integers; M interfaces, configured to connect to one or more charging piles other than the charging pile, wherein N ≥ M ≥ 2, and M is an integer; and an interface switch, configured to connect to every two of the M interfaces, wherein each of the N charging branches is connected to one of the M interfaces by using an external switch (S3, S4) included in the charging pile, a charging gun in a charging branch in the charging pile is configured to receive a charging request, and the charging request comprises required power for charging; said charging gun in said charging branch in the charging pile is further configured to forward the charging request to a charging controller connected to said charging gun; said charging controller is configured to determine, based on the received charging request, whether remaining power of the charging pile reaches the required power; said charging controller is further configured to: when the remaining power of the charging pile is less than the required power, determine, based on the remaining power of the charging pile and the required power, shared power required by the charging pile, wherein the shared power is power that needs to be shared by one or more charging piles other than the charging pile with the charging pile; and said charging controller is further configured to: determine a target charging pile from the one or more charging piles based on the shared power, and the target charging pile is a charging pile whose remaining power is greater than or equal to the shared power in the one or more charging piles, wherein the target charging pile is one charging pile that is closest to the charging pile and that is one of one or more charging piles whose remaining power is greater than or equal to the shared power.