An immersion cooling system, wherein: the system comprises an electronic device, a non-conductive working medium, and plural gasbags in closed container; the electronic device is immersed in the non-conductive working medium; the non-conductive working medium is configured to dissipate heat for the electronic device, and a volume of the non-conductive working medium expands as a temperature rises; and a surface of the gasbag is elastic, and the gasbag is configured to reduce its volume when the gasbag is compressed by volume expansion of the non-conductive working medium, so as to buffer a pressure rise in the system, wherein the pressure rise is caused by the volume expansion of the non-conductive working medium, wherein: the number of gasbags is determined according to a volume expansion value of the non-conductive working medium and a volume decrease value of each gasbag, and wherein the number of gasbags is determined according to the following formula: ∑ i > 1 N ∇ v i ≥ ∇ V wherein ∇ V represents the volume expansion value of the non-conductive working medium, and ∇ v i represents a volume decrease value of an i th gasbag, wherein i is a natural number that is greater than 1 less than or equal to N; and N is the number of the gasbags, and N needs to ensure that a sum of volume decrease values of all gasbags is greater than or equal to the volume expansion value of the non-conductive working medium. the system comprises an electronic device, a non-conductive working medium, and plural gasbags in closed container; the electronic device is immersed in the non-conductive working medium; the non-conductive working medium is configured to dissipate heat for the electronic device, and a volume of the non-conductive working medium expands as a temperature rises; and a surface of the gasbag is elastic, and the gasbag is configured to reduce its volume when the gasbag is compressed by volume expansion of the non-conductive working medium, so as to buffer a pressure rise in the system, wherein the pressure rise is caused by the volume expansion of the non-conductive working medium, wherein: the number of gasbags is determined according to a volume expansion value of the non-conductive working medium and a volume decrease value of each gasbag, and wherein the number of gasbags is determined according to the following formula: ∑ i > 1 N ∇ v i ≥ ∇ V wherein ∇ V represents the volume expansion value of the non-conductive working medium, and ∇ v i represents a volume decrease value of an i th gasbag, wherein i is a natural number that is greater than 1 less than or equal to N; and N is the number of the gasbags, and N needs to ensure that a sum of volume decrease values of all gasbags is greater than or equal to the volume expansion value of the non-conductive working medium. the number of gasbags is determined according to a volume expansion value of the non-conductive working medium and a volume decrease value of each gasbag, and wherein the number of gasbags is determined according to the following formula: ∑ i > 1 N ∇ v i ≥ ∇ V wherein ∇ V represents the volume expansion value of the non-conductive working medium, and ∇ v i represents a volume decrease value of an i th gasbag, wherein i is a natural number that is greater than 1 less than or equal to N; and N is the number of the gasbags, and N needs to ensure that a sum of volume decrease values of all gasbags is greater than or equal to the volume expansion value of the non-conductive working medium.