刪除特定題目的作業

def delete_question_answer(self, number: str) -> bool:
        """
        刪除特定題目的作業
        """
        try:
            # 操作所需資訊
            params = {
                'title': number
            }
            # 刪除作業
            response = self.__session.get(
                self.__url + '/delHw', params=params, timeout=0.5, verify=False)
            soup = BeautifulSoup(response.text, 'html.parser')
            # 回傳結果
            return soup.find('body').get_text().replace('\n', '').strip() == 'delete success'

        except requests.exceptions.Timeout:
            return None