python如何转换时间戳到"2017年6月12日 18点24分"这样的格式呢?谢谢
import time
timestamp = time.time()
time.strftime('%Y年%m月%d日 %H时%M分', time.localtime(timestamp))
Traceback (most recent call last):
File "", line 1, in
UnicodeEncodeError: 'locale' codec can't encode character '\u5e74' in position 2: Illegal byte sequence
另外吐槽下,chrome下打开segmentfault显示内存用完崩溃的错误到底什么时候修啊啊啊啊啊啊!
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
温故而知新,可以为师矣。博客:www.ouyangke.com