Description: Give you a time t (t is a dictionary, there are six string keys (year, month, day, hour, minute, second), the value is a string of numbers, such as t = {' Year': '2013', 'month': '9', 'day': '30', 'hour': '16', 'minute': '45', 'second': '2'} Please output it in the following format, format: XXXX-XX-XX XX:XX:XX. The above example should output: 2013-09-30 16:45:02. From __future__ import print_funcTIon import dateTIme,TIme,calendar # t={'year':'2013','month':'9','day':'30','hour':'16', 'minute': '45', 'second': '2'} def convert_to_date_TIme(t): nowdate = datetime.datetime(int(t['year']), int(t['month']), int(t['day ']), int(t['hour']), int(t['minute']), int(t['second'])) # date_time = time.strptime(nowdate, "%Y-%m- %d %H:%M:%S") return nowdate print(convert_to_date_time(t), end='') LED Tile ligh,Waterproof led tile lamp Kindwin Technology (H.K.) Limited , https://www.szktlled.com