# write to a HTMLfile - not yet modularised
# open a file for writing
uni = "QUT"
filename = open(uni + " home.html", 'w')
filename.write("""
<!DOCTYPE html>
<html>
<title>
""" + uni +
"""
</title>
<body>
<h1 align='center'>Welcome to
""" + uni +
"""
</h1>
<hr>
<h2>We all <b><i>LIKE</i></b> Python.</h2>
<hr>
The end.
</body>
</html>
""")
filename.close()
版权所有:编程辅导网 2021 All Rights Reserved 联系方式:QQ:99515681 微信:codinghelp 电子信箱:99515681@qq.com
免责声明:本站部分内容从网络整理而来,只供参考!如有版权问题可联系本站删除。