08 2018 档案

摘要:1、如何创建类 1.1 类 class 类名: pass 1.2 方法 1.2.1 构造方法:创建实例时自动调用 def __init__(self,arg): pass 1.2.2 普通方法: def 方法名(self, 参数......): pass 1.2.3 特殊方法:像Python的str 阅读全文
posted @ 2018-08-07 14:32 蒸水渔翁 阅读(165) 评论(0) 推荐(0)
摘要:环境:Python3.x+cx_Oracle6.x 结论:只要 客户端的NLS_LANG设置与oracle数据库服务器的一致,且NLS_LANG不为WE8ISO8859P1,则汉字显示正常。 故有必要将字符集为WE8ISO8859P1的oracle数据库,改为ZHS16GBK、UTF8等。实在不能修 阅读全文
posted @ 2018-08-01 20:42 蒸水渔翁 阅读(1315) 评论(0) 推荐(0)