The increasing urbanisation process has led to the intensification of the urban heat island effect and the difficulty of air flow within the city,making it important to strengthen the planning of urban ventilation corridors. This paper is based on the Python development language,interpreting remote sensing images and reanalyzing data to develop an algorithmic model of Nanjing's ventilation corridors,as follows:Processing MODIS data by Python with GDAL to obtain urban surface temperature values,then calling Scipy to Gaussian fuzzy the frequency map to obtain the distribution of urban heat and low sources at a spatial resolution of 1km;Processing NCEP reanalysis data through Python with Xarray to obtain urban wind fields,and then invoking Scipy linear interpolation method to calculate urban wind environments with a spatial resolution of 1km;Based on the results of the two distributions,combined with vector data of provincial administrative divisions,taking county-level administrative divisions as the basic unit and referring to historical urban green space planning,the ventilation corridor alignment was determined. This paper ultimately identifies five potential ventilation corridors and gives sound advice on planning controls.