Created
February 2, 2011 17:25
-
-
Save serian/808028 to your computer and use it in GitHub Desktop.
python db sqlite3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
csr = self.conn.cursor() | |
csr.execute(SQL_GET_TAG) | |
tags = {} | |
for tag in csr: | |
one = tag[0] | |
if not one in tags: | |
tags[one] = 1 | |
else: | |
tags[one] += 1 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
カラム一つでも、タプルに入って返ってくる