If your snake refuses food for a long time, even if it's not eating anything you offer, it may need to be force-fed (of course, situations vary, and it may be sick; I can't provide a diagnosis).
This procedure isn't 100% safe, so it needs to be approached with the utmost care and caution. Don't rush, as it's easy to damage something during the process, especially if the snake is small. I have a lot of experience with this; I've done it literally thousands of times and never had any problems because I was careful and didn't rush. So, follow my example.