A method for accessing a Wireless Fidelity WiFi network, wherein the method is applied to a terminal, the terminal comprises N WiFi access circuits and at least one processor, the at least one processor is configured to run a software program to form M containers, each container corresponds to one WiFi network access service, the M containers are capable of operating at the same time, tasks and data of different WiFi network access services during operation of different containers are mutually isolated, each container corresponds to and comprises at least a part of a corresponding operating system, and the method comprises: accessing, by the terminal, a first WiFi network by using a first WiFi access circuit of the N WiFi access circuits when a first container of the M containers operates; and accessing, by the terminal, a second WiFi network by using a second WiFi access circuit of the N WiFi access circuits when the terminal switches from operation of the first container to operation of a second container of the M containers, wherein the first container continues operating in a background running manner, and the terminal continues using the first WiFi access circuit to access the first WiFi network, wherein M and N are natural numbers greater than or equal to 2; wherein the terminal further comprises a WiFi processor; wherein the accessing, by the terminal, a first WiFi network by using a first WiFi access circuit of the N WiFi access circuits when a first container operates comprises: accessing, by the WiFi processor of the terminal, the first WiFi network according to a preset mapping relationship between containers and WiFi access circuits by using the first WiFi access circuit corresponding to the first container of the N WiFi access circuits; and the accessing, by the terminal, a second WiFi network by using a second WiFi access circuit of the N WiFi access circuits when the terminal switches to operation of the second container comprises: accessing, by the WiFi processor of the terminal, the second WiFi network according to the mapping relationship by using the second WiFi access circuit corresponding to the second container of the N WiFi access circuits. accessing, by the terminal, a first WiFi network by using a first WiFi access circuit of the N WiFi access circuits when a first container of the M containers operates; and accessing, by the terminal, a second WiFi network by using a second WiFi access circuit of the N WiFi access circuits when the terminal switches from operation of the first container to operation of a second container of the M containers, wherein the first container continues operating in a background running manner, and the terminal continues using the first WiFi access circuit to access the first WiFi network, wherein M and N are natural numbers greater than or equal to 2; wherein the terminal further comprises a WiFi processor; wherein the accessing, by the terminal, a first WiFi network by using a first WiFi access circuit of the N WiFi access circuits when a first container operates comprises: accessing, by the WiFi processor of the terminal, the first WiFi network according to a preset mapping relationship between containers and WiFi access circuits by using the first WiFi access circuit corresponding to the first container of the N WiFi access circuits; and the accessing, by the terminal, a second WiFi network by using a second WiFi access circuit of the N WiFi access circuits when the terminal switches to operation of the second container comprises: accessing, by the WiFi processor of the terminal, the second WiFi network according to the mapping relationship by using the second WiFi access circuit corresponding to the second container of the N WiFi access circuits. accessing, by the WiFi processor of the terminal, the first WiFi network according to a preset mapping relationship between containers and WiFi access circuits by using the first WiFi access circuit corresponding to the first container of the N WiFi access circuits; and the accessing, by the terminal, a second WiFi network by using a second WiFi access circuit of the N WiFi access circuits when the terminal switches to operation of the second container comprises: accessing, by the WiFi processor of the terminal, the second WiFi network according to the mapping relationship by using the second WiFi access circuit corresponding to the second container of the N WiFi access circuits.