python中日期格式中去掉自动补位 0
python中日期格式中去掉自动补位 0
import datetime # mac下使用 - time = datetime.datetime.now().strftime('%Y.%-m.%-d') # windows使用 # time = datetime.datetime.now().strftime('%Y.%#m.%#d') print(time)
python中日期格式中去掉自动补位 0
import datetime # mac下使用 - time = datetime.datetime.now().strftime('%Y.%-m.%-d') # windows使用 # time = datetime.datetime.now().strftime('%Y.%#m.%#d') print(time)