This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
books = ''' | |
<response version-api="2.0"> | |
<value> | |
<books> | |
<book available="20" id="1"> | |
<title>Don Xijote</title> | |
<author id="1">Manuel De Cervantes</author> | |
</book> | |
<book available="14" id="2"> | |
<title>Catcher in the Rye</title> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ python test1.py | |
{'id': 3} | |
{'id': 3} | |
$ python test2.py | |
{'id': 2} | |
{'id': 3} | |
why different?? |