The invention provides a hydrogen-containing energy storage microgrid optimization operation method based on deep reinforcement learning, and the method comprises the steps: building an electrolytic cell efficiency characteristic model through a linear interpolation method, combining the electrolytic cell efficiency characteristic model with a gas turbine model, an electrochemical energy storage model, a hydrogen storage tank model, a fuel cell model and the like, and taking the microgrid operation cost as a target, constructing an optimized operation model of the hydrogen-containing energy storage micro-grid. And finally, solving a sequence decision problem of micro-grid optimization operation by adopting a depth deterministic strategy gradient algorithm. According to the method, the efficiency characteristic of the electrolytic cell is considered, the hydrogen energy storage capacity can be fully utilized, the optimization problem is solved according to the deep reinforcement learning principle, the operation cost of the hydrogen-containing energy storage microgrid is reduced, and good generalization is achieved.