摘要:
http://stackoverflow.com/questions/18034272/python-str-vs-unicode-types unicode is a character set. utf-8 is a way to store text in unicode. (utf-8 is 阅读全文
摘要:
#1for index, val in enumerate(reversed(list)): print len(list) - index - 1, val#2def reverse_enum(L): for index in reversed(xrange(len(L))): ... 阅读全文
摘要:
how to decode the data in session:python manage.py shell:from django.contrib.sessions.models import Session#...sess = Session.objects.all()for s in se... 阅读全文