I can prepare some simple techniques to defend myself before and during an attack.
Guard your face. If the attacker is trying to punch you or grab you from the front, put your hands on your forehead in a "Not in the face!" sort of gesture and your arms tight on your body.
Stand with a wide base. Both left-to-right and back-to-front, keep your feet diagonal from each other in a kind of martial-arts stance.This will lessen your likelihood of getting knocked or pushed over.
Assess your assailant. Look at their hands.
If you're attacked by a person with a knife or a gun, you need to try and avoid confrontation and get away. If it's impossible to avoid a fight, you need to end the confrontation with a high-impact attack as quickly as possible, then run for help.
Take the defensive posture of running.If you can avoid a fight, avoid it and run away. or Kick or grab the groin of a male attacker.
after Follow up. Try to poke or press on the eyes.
If an attacker attacks with a weapon, know where the weapon is effective. If you get a chance to leave safely, go for it. Be sure that you're safe from your opponent when you decide to stop defending yourself.