如何在python中转义字符串以用作xpath键我在python中遇到了这个关键错误 KeyError: ("./note/[@player='Ba'g']",) 使用时 player = "Ba'g" xpathstring = " ...2024-04-20 已阅读: n次