登入課程

def login(self, username: str, password: str, course: int) -> requests.Response:
        """
        登入課程
        """
        try:
            # 操作所需資訊
            payload = {
                'name': username,
                'passwd': password,
                'rdoCourse': course
            }
            # 回傳嘗試登入的回應
            return self.__session.post(
                self.__url + '/Login', data=payload, timeout=0.5, verify=False)

        except requests.exceptions.Timeout:
            return None