Skip to content

18.07.18

chy edited this page Jul 31, 2018 · 1 revision
[Python] trim
str.strip()
[Python] xmltodict
import xmltodict

dict = xmltodict.parse(xml_str)
[Python] api call
import requests

response = requests.get(url)

response.status_code
response.content
[Python] type check
type(foo)
isinstance(foo, list) # true or false

Clone this wiki locally