분류 전체보기354 이길의 끝에서 보호되어 있는 글 입니다. 2017. 8. 14. Sleep import MySQLdb as mdb import sys import json import MySQLdb import sys host = "localhost" db_id = "root" db_pw = "1q2w3e" db_name = "fitbit_db" db = MySQLdb.connect( host, db_id, db_pw, db_name ) cursor = db.cursor() #cursor.execute( "select version()" ) #data = cursor.fetchone() #cursor.execute( "show tables") #data = cursor.fetchall() #print data # 001_sleep_start.txt with open('001_sleep_star.. 2016. 2. 11. python sql import MySQLdb as mdb import sys import json import MySQLdb import sys host = "localhost" db_id = "root" db_pw = "1q2w3e" db_name = "fitbit_db" db = MySQLdb.connect( host, db_id, db_pw, db_name ) cursor = db.cursor() #cursor.execute( "select version()" ) #data = cursor.fetchone() #cursor.execute( "show tables") #data = cursor.fetchall() #print data # sleep start with open('001_sleep_start.txt') .. 2016. 2. 11. sql input import MySQLdb as mdb import sys import json import MySQLdb import sys host = "localhost" db_id = "root" db_pw = "1q2w3e" db_name = "fitbit_db" db = MySQLdb.connect( host, db_id, db_pw, db_name ) cursor = db.cursor() #cursor.execute( "select version()" ) #data = cursor.fetchone() #cursor.execute( "show tables") #data = cursor.fetchall() #print data with open('001_sleep_start.txt') as f: data = f.. 2016. 2. 11. 이전 1 ··· 30 31 32 33 34 35 36 ··· 89 다음