Traffic prediction is an important component of intelligent transportation system. Since traffic data is typical spatiotemporal data with spatial attributes and temporal attributes, how to integrate the information of temporal and spatial dimension to model traffic data and make effective prediction is an important way to improve the prediction effect. In terms of temporal modeling, most of the existing research uses RNN-based methods, which cannot effectively capture long-term sequence features. In terms of spatial modeling, the GCN model is used to model the static spatial structure, which cannot accurately reflect the dynamic relationship between the nodes in the graph structure, and in the multi-layer structure, the prediction error of each layer is easy to spread through the gradient to generate error accumulation. In view of the above deficiencies, we propose a traffic prediction model based on dynamic temporal graph convolutional networks. For temporal attribute modeling, dilated causal convolution is used to construct temporal relationships, and the influence of global temporal features on the extraction of temporal relationships is considered. For modeling the spatial relationship, a dynamic adjacency matrix is obtained by learning the relationship between the nodes in the graph through the attention mechanism, so that the model can capture the dynamic relationship between the nodes. At the same time, a Translate module is added between each spatiotemporal layer to reduce the propagation of prediction errors between spatiotemporal modules of each layer. The experimental results show that on the METR-LA dataset and the XIAN-TAXI dataset, compared with other mainstream traffic prediction methods, Our model achieves better prediction performance.