#coding: utf-8
from cx_Oracle.CURSOR import *
import cx_Oracle
conn= cx_Oracle.connect('XX', 'XX', '127.0.0.1:1521/orcl') #type:cx_Oracle.Connection
c=conn.cursor() #type:Cursor
# x=c.execute('select sysdate from dual')
x=c.execute('select * from sys_org')
result = x.fetchone()
print(result)
c.close()
conn.close()
红色部分解决在Pycharm中无法显示代码提示的问题