This paper examines how meteorological factors influence streamflow. It is crucial for water resources planning and management. It develops three deep learning models (LSTM, RF and GBM) and compares their performance with multiple linear regression (MLR). LSTM is identified as the best model, and SHAP is used to analyze the contributions of different factors to streamflow. The model is applied to the Tang River catchment in China. The results indicate that: 1) DL models outperform MLR in nonlinear regression; 2) the ranking of meteorological factors contributing to streamflow is: precipitation, evaporation, relative humidity, sunshine duration, ground temperature, and wind speed; 3) these factors affect streamflow within a 12-day lead time, with significant contributions closer to the prediction date; 4) during droughts, precipitation has a reduced effect on streamflow, suggesting groundwater recharge is likely recharged by groundwater. The model enhances our understanding of how meteorological factors interact with streamflow dynamics.