啥也不说了,还是看代码吧! [root@yyjk DATABASE]# cat DBI.py # -*- coding: utf-8 -*- import cx_Oracle import time import datetime class DBI (object): def LoadDB(self,a,b): print self conn = cx_Oracle.connect('tlcbuser/tlcbuser@1.1.1.1/tlyy') cursor = conn.cursor() #coding:UTF-8 #获取当前时间 time_now = i