title: How can I get int result from web python sql query?
body: <p>My code is as follows. My question is, how can I get the int result from the query?</p>
  
  <pre><code>import web 
  db = web.database(...)
  rs = db.query('select max(id) from tablename')
  </code></pre>