Food: Rats will eat anything a human will, and more.
Do rats like humans?
They are very social and love to hang out with human family members on the couch or on peoples' shoulders or in their laps. They will even try to groom their human companions as if these people were other rats in their “rat pack.” Pet rats love the warmth and contact of their caretakers and are actually very cuddly!
Will rats avoid humans?
Unless they're domesticated, rats are afraid of humans. But if there is no way to escape, a cornered rat would not hesitate to attack a human. For example, the black rat is capable of jumping 70cm into the air. It can climb on a wall and jump on your face.