我有一个如下的xml文件
<?xml version="1.0" encoding="utf-8"?>
<myTable xmlns="http://schemas.microsoft.com/windows/2008">
<my id="1">Hi this is one</my>
<my id="2">Hi this is one</my>
<my id="6">Hi this is one</my>
<my id="7">Hi this is one</my>
<my id="8">Hi this is one</my>
<my id="9">Hi this is one</my>
</myTable>
我想将(1)附加到第一个'my id =“1”'。这样我的结果xml将如下所示
<?xml version="1.0" encoding="utf-8"?>
<myTable xmlns="http://schemas.microsoft.com/windows/2008">
<my id="1">Hi this is one(1)</my>
<my id="2">Hi this is one</my>
<my id="6">Hi this is one</my>
<my id="7">Hi this is one</my>
<my id="8">Hi this is one</my>
<my id="9">Hi this is one</my>
</myTable>
我希望这件事在 python 正则表达式中完成
谢谢