2020
09-28
09-28
python 串行执行和并行执行实例
我就废话不多说了,大家还是直接看代码吧!#coding=utf-8importthreadingimporttimeimportcx_Oraclefrompprintimportpprintimportcsvprinttime.asctime()table_name="dbtest.csv"f=open(table_name+".csv","w")conn=cx_Oracle.connect('tlcbuser/tlcbuser@20.5.101.31/tlyy')cursor=conn.cursor()defquery01():tname=threading.current_thread()aa=10#cursor.execute("SELECT*FROMT...
继续阅读 >