A charging/discharging circuit, configured to charge and discharge a battery pack, wherein the circuit comprises a processing module, a first charging circuit, a first switch, a second switch, and an impedance, wherein the battery pack comprises a first battery and a second battery, and the first battery and the second battery are connected in parallel by the impedance, the impedance comprises a path cabling impedance and/or a path device impedance; and the first switch and the second switch are separately connected to the processing module, a first port of the first charging circuit, and the battery pack; the first charging circuit is configured to output a voltage by using the first port, the voltage passes through the first switch, the second switch, and the impedance for charging the battery pack, and the first switch and the second switch are separately connected to a charging line of at least one battery in the battery pack; and the processing module is configured to obtain a voltage and/or a current of the charging line of each battery in the battery pack, and control, based on the voltage and/or the current, the first switch and the second switch to be turned on or turned off, so that batteries in the battery pack are charged equally, wherein charging lines of the batteries in the battery pack comprise a first charging line and a second charging line so that: the first charging line passes through the first switch for charging the battery pack, thereby connecting the first battery to the first port through the first switch, and also connecting the second battery to the first port through the impedance and the first switch, and the second charging line passes through the second switch for charging the battery pack, thereby connecting the second battery to the first port through the second switch, and also connecting the first battery to the first port through the impedance and the second switch; and the processing module is further configured to: in a process in which the first charging line charges the battery pack, control the first switch to be turned on and the second switch to be turned off, or control the first switch to be turned off and the second switch to be turned on, so that a voltage difference between a charging voltage of the first battery and a charging voltage of the second battery is less than or equal to a first threshold. the first charging circuit is configured to output a voltage by using the first port, the voltage passes through the first switch, the second switch, and the impedance for charging the battery pack, and the first switch and the second switch are separately connected to a charging line of at least one battery in the battery pack; and the processing module is configured to obtain a voltage and/or a current of the charging line of each battery in the battery pack, and control, based on the voltage and/or the current, the first switch and the second switch to be turned on or turned off, so that batteries in the battery pack are charged equally, wherein charging lines of the batteries in the battery pack comprise a first charging line and a second charging line so that: the first charging line passes through the first switch for charging the battery pack, thereby connecting the first battery to the first port through the first switch, and also connecting the second battery to the first port through the impedance and the first switch, and the second charging line passes through the second switch for charging the battery pack, thereby connecting the second battery to the first port through the second switch, and also connecting the first battery to the first port through the impedance and the second switch; and the processing module is further configured to: in a process in which the first charging line charges the battery pack, control the first switch to be turned on and the second switch to be turned off, or control the first switch to be turned off and the second switch to be turned on, so that a voltage difference between a charging voltage of the first battery and a charging voltage of the second battery is less than or equal to a first threshold.