python cx_oracle 变量形式连接数据库

  os.environ['NLS_LANG'] = 'SIMPLIFIED CHINESE_CHINA.AL32UTF8'
   conn = cx_Oracle.connect(dbuser,dbpass,dbip+'/'+dbservice)
   cursor = conn.cursor()
   a = cursor.execute(customsql)
   d={}
   info = cursor.fetchall()
   print info
   print type(info)

原文地址:https://www.cnblogs.com/hzcya1995/p/13349314.html