python将IIS日志导入到SQL
摘要:
import reimport osimport MySQLdb as mdbdef create_table(name): #建表函数 create_sql = ''' #建表的SQL语句 create table if not exists %s ( ID int primary key auto_increment, DATE date, TIME time, URL text, IP char(15), UA text, REFERER text, STATUS int(3), BYTES int ) ... 阅读全文