Calming your Zombie Player
Zombie Players are just hungry, and you look delicious, but there are other things they can feed on.
With some raw meat, right click them or toss it on the ground for them to pickup, this will satisfy their hunger. You'll find they no longer try to bite you, for now... Some have observed they will remain calm for a few days. Perhaps they will stay calm longer if you feed them some more.
You'll find they can be useful, and will attack other monsters to help protect you.
If the Zombie Player spawned from your death, they will hang around your spawn, but other naturally spawned ones will just wander.
If you want to keep them in a general area, try right clicking them with a bed,