12 2017 档案
摘要:strftime(format[, tuple]) -> string将指定的struct_time(默认为当前时间),根据指定的格式化字符串输出python中时间日期格式化符号:%y 两位数的年份表示(00-99)%Y 四位数的年份表示(000-9999)%m 月份(01-12)%d 月内中的一天
阅读全文
摘要:django 连接mysql默认驱动是MySQLdb,MySQLdb没有支持python3的版本,如果使用python3.x版本时,django连接mysql的方法 1、使用pymysql替换MySQLdb 在配置文件同目录下的__init__.py文件中加入以下代码: 2、使用mysqlclien
阅读全文
摘要: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
阅读全文

浙公网安备 33010602011771号