Now you can practice toe hook, lie flat on the bed, straighten your legs, hook your toes hard for about ten seconds, then straighten and practice for about ten seconds.
You can practice leg lifts in a few days (don't practice this for the time being, wait for a while to recover). You also lie flat on the bed, hook your injured legs and toes, and try to straighten up as much as possible. It will be difficult at first, but your legs will be strong after a while.
But remember, be sure to pay attention to safety. Exercise is not the bigger the better. If it is beyond a person's capacity, it will easily become dangerous. Should be a small number of times, step by step, not in a hurry. Also remember to follow the doctor's advice and don't take it on your own.