open read and close a file in 1 line of code

前端 未结 11 1327

Now I use:

pageHeadSectionFile = open(\'pagehead.section.htm\',\'r\')
output = pageHeadSectionFile.read()
pageHeadSectionFile.close()

But t

11条回答
提交回复
热议问题