word中插入代码不好看,试试highlightcode 网址:https://highlightcode.com/ 然后复制粘贴到word 还有一个网站:https://pygments.org/demo/#try