1
RIcter 2014-04-06 21:07:55 +08:00 1
Python 2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500 64 bit (AMD64)] on win
32 Type "help", "copyright", "credits" or "license" for more information. >>> a=u'啊' >>> len(a) 1 >>> a='啊' >>> len(a) 2 >>> 不谢= =! |
2
mengzhuo 2014-04-06 22:44:55 +08:00
max_length转换成MYSQL是varchar,这个是按字符数计算的,你希望的效果只能自己写filter了
|