def str_format(string, values):
    '\n    格式化字符串\n    :param string:(str) "DCC: %sat_sensor_Projection_%ymd（分辨率 %resolution 度）"\n    :param values:(dict) {"sat_sensor": sat_sensor, "resolution": str(resolution), "ymd": ymd}\n    :return: DCC: FY3D+MERSI_Projection_201712（分辨率 1 度）\n    '
    if (not isinstance(string, str)):
        return
    for (k, v) in values.items():
        string = string.replace(('%' + str(k)), str(v))
    return string
格式化字符串
:param string:(str) "DCC: %sat_sensor_Projection_%ymd（分辨率 %resolution 度）"
:param values:(dict) {"sat_sensor": sat_sensor, "resolution": str(resolution), "ymd": ymd}
:return: DCC: FY3D+MERSI_Projection_201712（分辨率 1 度）
def str_format(string, values):
    '\n    格式化字符串\n    :param string:(str) "DCC: %sat_sensor_Projection_%ymd（分辨率 %resolution 度）"\n    :param values:(dict) {"sat_sensor": sat_sensor, "resolution": str(resolution), "ymd": ymd}\n    :return: DCC: FY3D+MERSI_Projection_201712（分辨率 1 度）\n    '
    if (not isinstance(string, str)):
        return
    for (k, v) in values.items():
        string = string.replace(('%' + str(k)), str(v))
    return string