
部分代码:
with open("收盘价Dashboard.html","w",encoding="utf-8") as html_file:
html_file.write('<html><head><title>收盘价Dashboard</title><metacharset="utf-8"></head><body>\n')
for svg in ["收盘价折线图.svg","收盘价读数变换折线图.svg","收盘价月日均值.svg","收盘价周日均值.svg","收盘价星期均值.svg"]:
html_file.write(' <object type = "image/svg + xml" data = "{0}"height = 500></object>\n'.format(svg))
html_file.write('</body></html>')