Date Tags markdown

Basic markdown examples are shown below

This text is bold This text is also bold ⋯ This text is italic This text is also italic

This text is italic and bold

An h1 heading

An h2 heading

An h3 heading...

An h6 heading

A list with numbers: 1. One 2. Two 3. Three

A list with bullets: * Bullet * Bullet * Bullet

Here's a blockquote:

> Simple is better than complex

Here's a table:

Column1 Column 2 Column 3
Value 1 Value 2 Value 3
Value 4 Value 5 Value 6
Value 7 Value 8 Value 9

Here's a python script

def login(self):
    # 先開啟起始網頁取得初始cookies取得權限
    pre_web = self.rs.get(self.pre_url,
                          headers=self.nor_headers)
    pre_cookies = requests.utils.dict_from_cookiejar(self.rs.cookies)

    # 登入學校系統
    login_web = self.rs.post(self.login_url,
                             headers=self.nor_headers,
                             data=self.login_data)
    login_cookies = requests.utils.dict_from_cookiejar(self.rs.cookies)
    remove_cookie_by_name(self.rs.cookies, 'PHPSESSID')  # 不知道 cookie 多了不必要的PHPSESSID會不會怎樣,先刪除好了

    # 檢查登入有沒有失敗
    if login_web.url != self.search_url:
        raise LoginError('登入失敗!!!')

    return login_web

Comments

comments powered by Disqus