As for why Li Bai wrote his sword-dancing poems in his poems, it is actually closely related to his life experience. Li Bai 18 was fascinated by Taoism. Li Bai also practiced fencing when he was young, and he liked to make friends with so-called people in the Jianghu. Of course, these are not clearly recorded. However, the literati in the Tang Dynasty attached great importance to literature and martial arts, and wearing a sword was more in line with the style of a modest gentleman. Therefore, in order to inherit the style of writing, it is not so important to wear a sword and know how to fencing.
During the Xuanzong period of the Tang Dynasty, you may only remember that Gao Lishi took off his shoes for Li Bai, whose poems have been circulated for thousands of years. To the poet Li Bai, we are actually strangers. Li Bai didn't have any good positions in the Tang Dynasty. From Difficult Walk, we can see that Li Bai's career path is not smooth. In his later years, Li Bai has completely retired from the mountains and lived his own life, but he also likes drinking. That kind of life made him temporarily forget the troubles of officialdom and began to think about life quietly.
In fact, a poet like Li Bai has been determined to be an honest official, serve the country and do things for the people since he was a child. However, life is rough and difficult, and they can only express their feelings and resentment in poetry.