下面举例的xml格式的消息是没有属性值的,但是xmltodict也是支持带属性值的。 ... encoding要加上 new_dict_obj = xmltodict.parse(f.read()).
確定! 回上一頁