Database Insert Python
# -*- coding: utf-8 -*- import pymysql import time import datetime #글로벌변수설정 nowdate = "" # 날짜&시간 nowtime = "" # 시간 startTime='' endTime ='' # ____gipo 핀 세팅___# gpio.cleanup() gpio.setmode(gpio.BCM) def insertDB(): conn = pymysql.connect(host='localhost', port=3306, user='id', passwd='passwd') sql = "INSERT INTO hackathon.datalist ( `filed1`, `filed2`, `filed3`, `filed4`, `filed5`, `filed6`) VALU..