12 2017 档案

摘要:strftime(format[, tuple]) -> string将指定的struct_time(默认为当前时间),根据指定的格式化字符串输出python中时间日期格式化符号:%y 两位数的年份表示(00-99)%Y 四位数的年份表示(000-9999)%m 月份(01-12)%d 月内中的一天 阅读全文
posted @ 2017-12-19 13:34 zhat 阅读(14899) 评论(1) 推荐(0)
摘要:django 连接mysql默认驱动是MySQLdb,MySQLdb没有支持python3的版本,如果使用python3.x版本时,django连接mysql的方法 1、使用pymysql替换MySQLdb 在配置文件同目录下的__init__.py文件中加入以下代码: 2、使用mysqlclien 阅读全文
posted @ 2017-12-18 14:25 zhat 阅读(4205) 评论(0) 推荐(0)
摘要:I thought it would be an easy one, but found myself lost with 34 opened tabs on stackoverflow... The problem : keep it ordered Usually, obtaining a Qu 阅读全文
posted @ 2017-12-11 11:03 zhat 阅读(5324) 评论(0) 推荐(0)