2 to keep your feelings under control : She was unable to contain her excitement.I was so furious I just couldn’t contain myself
(= I had to express my feelings). 3 to prevent sth harmful from spreading or getting worse: to contain an epidemicGovernment forces have failed to contain the rebellion.
Oxford 解释:verb /knst; NAmE srt/ [v] ~ with sb (formal) to spend time with sb that other people do not approve of: He is known to have consorted with prostitutes.