首页 > > 详细

python 编程辅导、辅导python open fiile 程序 辅导Web开发|调试Matlab程序

# create a html file - using functions

def open_file(name):
file_write = open(name, 'w')
return file_write

def write_header(filename):
filename.write("""


<br> Test THT2 page<br>

""")

def write_footer(filename):
filename.write("""
""")

def close_file(filename):
filename.close()


filename = open_file('Test02_Australia.html')
write_header(filename)

# write the contents of the hmtl page
# TO DO

write_footer(filename)
close_file(filename)
联系我们
  • QQ:99515681
  • 邮箱:99515681@qq.com
  • 工作时间:8:00-21:00
  • 微信:codinghelp
热点标签

联系我们 - QQ: 99515681 微信:codinghelp
程序辅导网!