import xml.etree.ElementTree as et

etree = et.ElementTree()
# help(et.ElementTree)

e = et.Element("Student")

etree._setroot(e)

e_name = et.SubElement(e, 'name')
e_name.text = 'zyp'

e_age = et.SubElement(e, 'age')
e_age.text = '20'


etree.write('v06.xml')




7c7a963a086a422dd9063f35c6c13fd17b1c17db
<mask token>

<mask token>
etree._setroot(e)
<mask token>
etree.write('v06.xml')

<mask token>
etree = et.ElementTree()
e = et.Element('Student')
etree._setroot(e)
e_name = et.SubElement(e, 'name')
e_name.text = 'zyp'
e_age = et.SubElement(e, 'age')
e_age.text = '20'
etree.write('v06.xml')

import xml.etree.ElementTree as et
etree = et.ElementTree()
e = et.Element('Student')
etree._setroot(e)
e_name = et.SubElement(e, 'name')
e_name.text = 'zyp'
e_age = et.SubElement(e, 'age')
e_age.text = '20'
etree.write('v06.xml')

import xml.etree.ElementTree as et

etree = et.ElementTree()
# help(et.ElementTree)

e = et.Element("Student")

etree._setroot(e)

e_name = et.SubElement(e, 'name')
e_name.text = 'zyp'

e_age = et.SubElement(e, 'age')
e_age.text = '20'


etree.write('v06.xml')



