import datetime
now = datetime.datetime.now()
print(now)
import re

def strftime(datetimeobject, formatstring):
    formatstring = formatstring.replace('%%', 'guest_u_never_use_20130416')
ps = list(set(re.findall('(%.)', formatstring)))
format2 = '|'.join(ps)
vs = datetimeobject.strftime(format2).split('|')
for p, v in zip(ps, vs):
    formatstring = formatstring.replace(p, v)
return formatstring.replace('guest_u_never_use_20130416', '%')
r = strftime(now, '%%%Y\xe5\xb9\xb4%m\xe6\x9c\x88%d\xe6\x97\xa5 %%')
print(r)
python3 datetime.datetime.strftime failed to accept utf-8 string format