摘要: https://blog.csdn.net/SuperCreators/article/details/81393977 pythn print格式化输出。 %r 用来做 debug 比较好,因为它会显示变量的原始数据(raw data),而其它的符 号则是用来向用户显示输出的。 1. 打印字符串 阅读全文
posted @ 2018-10-09 21:47 feiyun8616 阅读(4474) 评论(0) 推荐(0)
摘要: 1.execmd = "su - " + ou + " -c 'sqlplus / as sysdba << EOF\n " + execmd3 + '\n' + execmd4 + '\n' + execmd5 + '\n' + execmd6 + "'" ## 解释 \n 是换行, + + 中间 阅读全文
posted @ 2018-10-09 17:42 feiyun8616 阅读(827) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/orangleliu/article/details/38943749 项目中有个定时任务,每天取到一些表数据传到一个外部接口,但是最近总是有异常,今天查了下原因。 首先本地和测试环境测试这个程序都没问题,只有线上环境会在日志中抛出异常,猜测异常主要产生的 阅读全文
posted @ 2018-10-09 17:38 feiyun8616 阅读(295) 评论(0) 推荐(0)