206530235/排行榜

15 lines
391 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

class Query_Db(object):
def _init_(self, dbname=DB_NAME):
self.conn-None
self.db_table='books'
self.db_name-dbname
self.get_conn ()
def get_conn (self):
try
self.conn = sqlite3.connect (self.db_name)
except Exception as e:
print 'Error:' ,e
def get_total_ num(self)
def query_pub_company(self)