Requests

出自Local Chinese Wikipedia
跳至導覽 跳至搜尋

頁面Module:Infobox/styles.css沒有內容。

Requests
File:Requests Python Logo.png
原作者Kenneth Reitz
開發者Kenneth Reitz, Cory Benfield, Ian Stapleton Cordasco, Nate Prewitt
首次發布2011年2月14日 (2011-02-14)
目前版本Template:Software version
原始碼庫頁面Template:Plainlist/styles.css沒有內容。
  • {{URL|example.com|可选的显示文本}}
Module:EditAtWikidata第29行Lua錯誤:attempt to index field 'wikibase' (a nil value)
程式語言Python
引擎頁面Template:Plainlist/styles.css沒有內容。
    Module:EditAtWikidata第29行Lua錯誤:attempt to index field 'wikibase' (a nil value)
    作業系統跨平台
    許可協定Apache許可證2.0
    網站{{URL|example.com|可选的显示文本}}Module:EditAtWikidata第29行Lua錯誤:attempt to index field 'wikibase' (a nil value)
    頁面Module:Infobox/styles.css沒有內容。

    Requests是一個Python HTTP,在Apache License 2.0 許可證下發行。這個專案的目標是使HTTP請求更簡單,更人性化。Requests是沒有預設包含在Python內的最流行的Python庫之一[1],因此有人建議將其預設隨Python一起發布[2]

    範例代碼[編輯]

    >>> import requests
    >>> r = requests.get('https://httpbin.org/basic-auth/user/pass', auth=('user', 'pass'))
    >>> r.status_code
    200
    >>> r.headers['content-type']
    'application/json; charset=utf8'
    >>> r.encoding
    'utf-8'
    >>> r.text
    '{"authenticated": true, ...'
    >>> r.json()
    {'authenticated': True, ...}
    

    參照[編輯]

    1. package.lua第80行Lua錯誤:module 'Module:Citation/CS1/People' not found
    2. package.lua第80行Lua錯誤:module 'Module:Citation/CS1/People' not found

    外部連結[編輯]

    • Module:Official_website第90行Lua錯誤:attempt to index field 'wikibase' (a nil value)
    • GitHub上的requests頁面

    package.lua第80行Lua錯誤:module 'Module:Navbar/configuration' not found