2015-09-06 Python3.x和Python2.x差别 区别 print3.x: print(info) 必须带()2.x: print info 可要可不要() 类别名3.x: def __str__(self): pass 2.x: def __unicode__(self): pass 字符集3.x: 默认unicode, py文件格式为utf-8格式即可2.x: ansic默认,中文需要 u’中文’ 形式来实现。并且在py文件中显示声明 utf-8 Neuer Software Construction Älter django