2024-09-19 23:29:20 发布
网友
{{cd2>要用下面的小脚本替换} 我不知道为什么它不起作用。也许有人能帮我
这是我的尝试:
input = r"asdffdsa\=qwert, trewert\=qwerqwer" print input output = input.replace("=\\", "=") print output print input.find("=\\")
我得到以下输出:
您的输入中没有=\,只有\=。因此,替换每个=\,即使你做得完全正确,也不会有任何效果。在
=\
\=
您的输入中没有
=\
,只有\=
。因此,替换每个=\
,即使你做得完全正确,也不会有任何效果。在相关问题 更多 >
编程相关推荐