Transcranial direct current stimulation (tDCS) is an emerging non-invasive brain stimulation technique. However, the rehabilitation effect of tDCS on stroke disease is unclear. In this paper, based on electroencephalogram (EEG) and complex network analysis methods, the effect of tDCS on brain function network of stroke patients during rehabilitation was investigated. The resting state EEG signals of 31 stroke rehabilitation patients were collected and divided into stimulation group (16 cases) and control group (15 cases). The Pearson correlation coefficients were calculated between the channels, brain functional network of two groups were constructed before and after stimulation, and five characteristic parameters were analyzed and compared such as node degree, clustering coefficient, characteristic path length, global efficiency, and small world attribute. The results showed that node degree, clustering coefficient, global efficiency, and small world attributes of brain functional network in the tDCS group were significantly increased, characteristic path length was significantly reduced, and the difference was statistically significant (P < 0.05). It indicates that tDCS can improve the brain function network of stroke patients in rehabilitation period, and may provide theory and experimental basis for the application of tDCS in stroke rehabilitation treatment.