About the question that PYTHON uses with open with For to read files and run until the For loop stops execution?

try:

        with open(self.userList,"r") as f_username:
            UserListCount=len(list(f_username))
            print(UserListCount)
            with open(self.passList,"r") as f_password :
                for name in f_username:
                    ****
                    if Finished == 1 or UserBreak ==1:  
                        break
                    UserTryCount=UserTryCount+1
                    print(""+name+":"+str(UserTryCount)+"/"+UserListCount)
                    for key in f_password:
                        if Finished==1 or UserBreak==1 or PassBreak ==1:
                            break
                        if AllCount % 10 == 0:
                            print(""+str(AllCount)+"")
                        if len(key)<self.MiniLen:
                            continue 
                        try:
                            AllCount=AllCount+1
                            if  self.Login(name,key)==True:
                                self.SuccesList.append(name+FG+key)
                                print("")
                                print("username:"+name+"\t\t\t\t\npassword:"+key+"\t")
                                print("\n")
                                PassBreak= 1
                            elif Login==False :
                                continue
                            else :
                                UserBreak=1
                        except Exception as e:
                            print(""+str(e))
                            continue
        if Finished!=1 and UserBreak!=1:
            print("")
    except Exception as e:
        print(e)
Jan.08,2022

has solved it himself.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b32a4f-2ab75.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b32a4f-2ab75.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?