获取时间格式 输出2018,3,10 17点23分45秒

import time
ttp2 = (2018, 3, 10, 17, 23, 45, 0, 0, 0)
result6 = time.strftime('%Y,%m,%d %H:%M:%S',ttp2)
str1 = result6[6:7]
str2 = result6[7:11]
str3 = result6[11:13]+'点'
str4 = result6[14:16]+'分'
str5 = result6[17:19]+'秒'
str6 = result6[0:5]+str1+str2+str3+str4+str5
print(str6)
;