Python_2_Examples_and_Notes/11_python_on_iphone_sqlite.py

12 lines
241 B
Python
Executable File

#!/usr/bin/python
# -*- coding: utf-8 -*-
import sqlite3
conn = sqlite3.connect('/System/Library/Frameworks/CoreLocation.framework/Support/timezone.db')
cur = conn.cursor()
for zone in cur.execute("select * from Names") :
print zone