i = 20190104 a = 2019 b = 1 c = 4 s = "%04d-%02d-%02d" % (a, b, c) 转载于:https://www.cnblogs.com/Stephen-Qin/p/11163717.html