A cleaning composition comprising an amphoteric polymer, the amphoteric polymer formed from a plurality of structure units together defining a total mass, such that: from 1% to 99% by mass of the plurality of structure units, based on the total mass, are cationic-group structure units having formula: where: R 0 is -H or -CH 3; R 1 is -CH 2 -, -CH 2 CH 2 -, or a direct bond; R 2, R 3, and R 4 each are independently selected from C 1-20 alkyl, aryl or alkenyl groups, wherein one or two hydrogen atoms therein may optionally be substituted with alkyl groups, aryl groups, alkenyl groups, alkoxy groups, hydroxyl groups, acyl groups, ether groups, amide groups, ester groups, ketone groups, carboxyl group, carboxylate group, sulfonic acid group or sulfonate group"; R 5 and R 6 each are independently selected from -H and C 1-20 alkyl, aryl or alkenyl groups, wherein one or two hydrogen atoms therein may optionally be substituted with alkyl groups, aryl groups, alkenyl groups, alkoxy groups, hydroxyl groups, acyl groups, ether groups, amide groups, ester groups, ketone groups, carboxyl group, carboxylate group, sulfonic acid group or sulfonate group; each Y 1 is independently selected from C 2-20 alkylene groups; n is from 5 to 300 and represents an average addition number of moles of oxyalkylene groups (-Y 1 -O-); and X - is a counteranion; and from 1% to 99% by mass of the plurality of structure units, based on the total mass of the plurality of structure units, are carboxyl structure units each derived from a carboxyl group-containing monomer; and optional additional monomers. from 1% to 99% by mass of the plurality of structure units, based on the total mass, are cationic-group structure units having formula: where: R 0 is -H or -CH 3; R 1 is -CH 2 -, -CH 2 CH 2 -, or a direct bond; R 2, R 3, and R 4 each are independently selected from C 1-20 alkyl, aryl or alkenyl groups, wherein one or two hydrogen atoms therein may optionally be substituted with alkyl groups, aryl groups, alkenyl groups, alkoxy groups, hydroxyl groups, acyl groups, ether groups, amide groups, ester groups, ketone groups, carboxyl group, carboxylate group, sulfonic acid group or sulfonate group"; R 5 and R 6 each are independently selected from -H and C 1-20 alkyl, aryl or alkenyl groups, wherein one or two hydrogen atoms therein may optionally be substituted with alkyl groups, aryl groups, alkenyl groups, alkoxy groups, hydroxyl groups, acyl groups, ether groups, amide groups, ester groups, ketone groups, carboxyl group, carboxylate group, sulfonic acid group or sulfonate group; each Y 1 is independently selected from C 2-20 alkylene groups; n is from 5 to 300 and represents an average addition number of moles of oxyalkylene groups (-Y 1 -O-); and X - is a counteranion; and R 0 is -H or -CH 3; R 1 is -CH 2 -, -CH 2 CH 2 -, or a direct bond; R 2, R 3, and R 4 each are independently selected from C 1-20 alkyl, aryl or alkenyl groups, wherein one or two hydrogen atoms therein may optionally be substituted with alkyl groups, aryl groups, alkenyl groups, alkoxy groups, hydroxyl groups, acyl groups, ether groups, amide groups, ester groups, ketone groups, carboxyl group, carboxylate group, sulfonic acid group or sulfonate group"; R 5 and R 6 each are independently selected from -H and C 1-20 alkyl, aryl or alkenyl groups, wherein one or two hydrogen atoms therein may optionally be substituted with alkyl groups, aryl groups, alkenyl groups, alkoxy groups, hydroxyl groups, acyl groups, ether groups, amide groups, ester groups, ketone groups, carboxyl group, carboxylate group, sulfonic acid group or sulfonate group; each Y 1 is independently selected from C 2-20 alkylene groups; n is from 5 to 300 and represents an average addition number of moles of oxyalkylene groups (-Y 1 -O-); and X - is a counteranion; and from 1% to 99% by mass of the plurality of structure units, based on the total mass of the plurality of structure units, are carboxyl structure units each derived from a carboxyl group-containing monomer; and optional additional monomers.