摘要: 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 蒸水渔翁 阅读(160) 评论(0) 推荐(0)
摘要: 环境:Python3.x+cx_Oracle6.x 结论:只要 客户端的NLS_LANG设置与oracle数据库服务器的一致,且NLS_LANG不为WE8ISO8859P1,则汉字显示正常。 故有必要将字符集为WE8ISO8859P1的oracle数据库,改为ZHS16GBK、UTF8等。实在不能修 阅读全文
posted @ 2018-08-01 20:42 蒸水渔翁 阅读(1306) 评论(0) 推荐(0)
摘要: 原文:https://cuiqingcai.com/6080.html 日志记录的重要性 在开发过程中,如果程序运行出现了问题,我们是可以使用我们自己的 Debug 工具来检测到到底是哪一步出现了问题,如果出现了问题的话,是很容易排查的。但程序开发完成之后,我们会将它部署到生产环境中去,这时候代码相 阅读全文
posted @ 2018-07-30 22:42 蒸水渔翁 阅读(368) 评论(0) 推荐(0)
摘要: 1、os all functions from posix, nt or ce, e.g. unlink, stat, etc. os.name is either 'posix', 'nt' or 'ce'.os.curdir is a string representing the curren 阅读全文
posted @ 2018-07-30 18:06 蒸水渔翁 阅读(180) 评论(0) 推荐(0)