As for how to have perseverance, it seems to vary from person to person. People with strong personalities or bitter childhood are naturally more persistent. People who are used to enjoying happiness, or lazy people, naturally have weak perseverance.
Since we know our shortcomings, we should always remind ourselves, but we still can't change them, right? This is normal, but what others say may not be useful to you. The method provided upstairs is really scientific, and it may be your own successful experience, but I don't know if this is suitable for you, really. I've had this kind of thing before, and I'm still experiencing it. I know I should finish my homework early and know where my shortcomings are, more than once. I told myself to get rid of it more than once, but every time I made up my mind, I couldn't get rid of it. But with my maturity, I also learned to restrain myself and force myself, and I gradually got better.
My outlook on life has always been to live a happy and comfortable life, but sometimes I still restrain myself like this. Do you know why? Because I know it is necessary. Of course, sometimes it's nice to indulge.
Come on, I hope you succeed at an early date, and then restrain yourself! ! When you want to give up again, just say to yourself.
But don't push yourself too hard, hehe. In fact, sometimes this habit is not necessarily bad.
Finally, I wish you success!