将20220101格式类型的字符串转换为2022年01月01日
import datetime
testdate = "20220101"
testdate = datetime.datetime.strptime(testdate, '%Y%m%d')
testdate = datetime.datetime.strftime(testdate, '%Y年%m月%d日')
testdate
import datetime
testdate = "20220101"
testdate = datetime.datetime.strptime(testdate, '%Y%m%d')
testdate = datetime.datetime.strftime(testdate, '%Y年%m月%d日')
testdate