- 博客(3)
- 收藏
- 关注
原创 python list 交集,并集
1 # intersection2 intersection = list(set(a).intersection(set(b)))3 # union4 union = list(set(a).union(set(b)))5 # difference6 difference = list(set(a).difference(set(b)))
2019-01-31 11:08:13 1510
原创 django.db.utils.OperationalError: (1071, 'Specified key was too long; max key length is 767 bytes');
在使用utf8mb4字符集的情况下,如果列存在索引,那么varchar的最大长度是191数据库版本: 在使用utf8字符集的情况下,如果列存在索引,那么varchar的最大长度是255。 在大字段上创建索引时,有时会碰到下面的错误ERROR 1709 (HY000): Index column size too large. The maximum column s...
2019-01-18 16:19:58 2917
原创 Python 时间字符串
Python 之 时间字符串、时间戳、时间差、任意时间字符串转换时间对象1. 时间字符串 --> 时间戳 1) time 模块timestring = '2016-12-21 10:22:56'print time.mktime(time.strptime(timestring, '%Y-%m-%d %H:%M:%S')) # 1482286976.0 tim...
2019-01-11 18:08:44 1573
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人