Created
September 7, 2016 06:14
-
-
Save datahutrepo/7211baccbfd5e926d798c723d03cfbcf to your computer and use it in GitHub Desktop.
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
In [5]: etree.SubElement(root, 'head') | |
Out[5]: <Element head at 0x7f43a5c51e60> | |
In [6]: etree.SubElement(root, 'body') | |
Out[6]: <Element body at 0x7f43a5c51f38> | |
In [7]: print etree.tostring(root) | |
<html><head/><body/></html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment