title: Why does variable could be added to'.json' and '.text'
body: <pre><code>import requests
  req=requests.get(json_url)
  with open('xxx','w') as f:
  
      f.write(req.text)
  file_requests=req.json()
  </code></pre>
  
  <p>requests is a module, get is a function, so req=requests.get(), but what is req.txt and req.json(), is it also a function? </p>