Tag » Phyton

How to convert xml into text file [python]

import xml.etree.ElementTree as ET
tree = ET.parse(‘test.xml’)
notags = ET.tostring(tree.getroot(), encoding=’utf-8′,method=’text’)
f = open(‘test.txt’,’w’)

reference : link1 | link2


Networking and... Rest-APIs, JSON, Python...?

It seems like everyone is talking about this nowadays.

Rest-APIs, JSON, Python, what’s the fuss all about, aren’t these development terms? Why are networking guys, suddenly, talking about development languages? 264 kata lagi


Installing TensorFlow on MacOS Sierra

I can’t remember every steps but I need to leave some notes that I can refer to later :) I just put everything I can remember here :) 235 kata lagi

Mac OS