Library is not only an important institution to support digital humanities research,but also an important subject to participate in digital humanities teaching.This paper combs the courses and cases of digital humanities teaching,summarizes the requirements and contents of the digital humanities pedagogy, and explores the functions of academic libraries in the digital humanity teaching.During the process of conducting digital humanities pedagogy,the functions of academic library include leading data curating,supporting the implementation of digital pedagogy,curating special collection and building experiential space and infrastructure.Some suggestions were provided on the taking of relevant measures of academic library around the needs of digital humanities teaching from two aspects of the innovation of working modes and librarian training.