如何在Python中搜索并替换为sub我想将我在latex中的所有引用从\cite{authoryear}更改为[\Citealt{authoryear}]。你知道吗 为了做到这一点,我尽力了 re.sub(r"\cite{[a-zA-Z ...2024-05-27 已阅读: n次