我在python中有一个日期对象,我需要使用%a(工作日)和%b(月)代码在遗留系统的C语言环境中生成时间戳.但是我不想更改应用程序的语言环境,因为其他部分需要尊重用户的当前语言环境.有没有办法用某个语言环境调用strftime()?
python locale strftime setlocale
locale ×1
python ×1
setlocale ×1
strftime ×1