#!/usr/bin/python def pretnum(g): h="{:,}".format(int(g)) print g+" -> "+h return h h="" l=0 for char in g: if l % 3 == 2: h+="," l+=1 h+=char print "%s -> %s" % (g, h) return h a=open("exp.conf", "r") b=open("xp.html", "w") for c in a: d=c.split(',') i=0 # For entry for e in d: # Output current limit if i == 0: b.write('Max Level: '+d[0]+'\n
') b.write(' | |
%d %s | ' % (i-2, pretnum(e) ))
i+=1
# Close this table, repeat the everyline loop
b.write('