<doocs>1507.Reformat Date_1.py
def reformatDate( date: str) -> str:
    months = [
        "Jan",
        "Feb",
        "Mar",
        "Apr",
        "May",
        "Jun",
        "Jul",
        "Aug",
        "Sep",
        "Oct",
        "Nov",
        "Dec",
    ]
    mapper = {v: str(k + 1) for k, v in enumerate(months)}
    split = date.split(' ')
    year = split[2]
    month = mapper.get(split[1])
    day = split[0][: len(split[0]) - 2]
    return year + '-' + month.zfill(2) + '-' + day.zfill(2)
def sample_funcname ( var_0 : str ) -> str :
    var_14 = [ "Jan" , "Feb" , "Mar" , "Apr" , "May" , "Jun" , "Jul" , "Aug" , "Sep" , "Oct" , "Nov" , "Dec" , ]
    var_19 = { var_15 : str ( var_16 + 1 ) for var_16 , var_15 in enumerate ( var_14 ) }
    split = var_0.split ( ' ' )
    var_23 = split [ 2 ]
    var_25 = var_19.get ( split [ 1 ] )
    var_28 = split [ 0 ] [ : len ( split [ 0 ] ) - 2 ]
    return var_23 + '-' + var_25.zfill ( 2 ) + '-' + var_28.zfill ( 2 )
