According to your description, this is because the partition boot system does not boot normally; Sorry, I'm not sure about the specific model of your computer and which version of the system you are using.
Press F8 (press F4 for win 10 system). When advanced options appear, select the last correct configuration, use the arrow keys to select, and then press enter. If not, restart, there will be a menu choice: safe mode, enter to enter antivirus, scan, and then restart. If you can't solve it, or you can't get in. Reinstall the system.
If this is still the case, you can click f9 to reply to the default answer, and then click f 10 to answer. If it is still invalid, the system has crashed and the answer needs to be reinstalled. You should try the answer first.