how to write a html to automatically display the dictionary?

luofeiyu elearn2014 at gmail.com
Tue Sep 23 10:18:09 EDT 2014


x={'f1':1,'f2':2,'f3':3}
how can i create the following html file automatically with python to 
display x ?

<table border=1>
<tr>
<td>
f1
</td>
<td>
f2
</td>
<td>
f3
</td>
</tr>
<td>
1
</td>
<td>
2
</td>
<td>
3
</td>
<tr>
</tr>
</table>



More information about the Python-list mailing list