从单词列表中生成.html文件? [英] generate .html files from the list of words?

查看:113
本文介绍了从单词列表中生成.html文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道,是否有可能从单词列表中生成某种.html文件?



请参阅附图中的示例。



谢谢!
图片

解决方案

是的!我们可以使用文件处理库来使用单词列表创建文件。
我附加一个python程序低于
lis = [file1,file2]
for x in lis:
open(x +。html)



运行以上程序并获得输出结果

I'm wondering, is there a possibility to generate somehow .html files from a list of words?

See an example on the attached picture.

Thanks! Pic

解决方案

Yes!! we can use file handling library to create file using the list of words. I am attaching a python program below lis=["file1", "file2"] for x in lis: open(x+".html")

run this above program and get the output

这篇关于从单词列表中生成.html文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆