Marco Nie - string <-> byte in python 的评论 https://blog.niekun.net/archives/1688.html zh-CN To transform a unicode string to a byte string in Python do this:>>> 'foo'.encode('utf_8... Thu, 01 Jan 1970 08:00:00 +0800 Thu, 01 Jan 1970 08:00:00 +0800