2020年12月15日
摘要: 前因后果 业务需要 决定升级python2.7至python3 升级之前: [root@shanghai-adminserver ~]# python -V Python 2.7.5 升级之后: [root@shanghai-adminserver ~]# python -V Python 3.9. 阅读全文
posted @ 2020-12-15 15:59 ZuoAn斜阳 阅读(103) 评论(0) 推荐(0)
  2018年12月10日
摘要: cursor.fetchone() 与 cursor.fetchall() 如果查询结果为空,前者返回 None,后者返回[] 此时如用 len() 函数计算长度,前者报错,后者返回0 阅读全文
posted @ 2018-12-10 16:28 ZuoAn斜阳 阅读(117) 评论(0) 推荐(0)
  2018年12月5日
摘要: this inspection highlights reundant parentheses in statement 字面翻译:多了个括号,单个参数使用 %(param) 会提示,可以使用 % param 或者 %(param,) spellchecker inspection helps lo 阅读全文
posted @ 2018-12-05 17:12 ZuoAn斜阳 阅读(148) 评论(0) 推荐(0)