摘要: 阅读全文
posted @ 2020-06-10 21:59 liuchun玲 阅读(92) 评论(0) 推荐(0) 编辑
摘要: seg1=''' <!DOCTYPE HTML>\n<html>\n<body>\n<meta charset=gb> <h2 align=center>Python成绩登记信计</h2> <table border='1' align="center" width=70%> <tr bgcolor 阅读全文
posted @ 2020-06-10 21:33 liuchun玲 阅读(181) 评论(0) 推荐(0) 编辑
摘要: readlines()读取所有内容,返回列表 打开文件的模式有: r,只读模式(默认)。 w,只写模式。【不可读:不存在则创建;存在则删除内容,重写内容;】 a,追加模式。【可读;不存在则创建;存在则只追加内容;】 “+”表示可以同时读写某个文件 r+,可读写文件。【可读;可写;可追加】 w+,写读 阅读全文
posted @ 2020-06-10 20:22 liuchun玲 阅读(116) 评论(0) 推荐(0) 编辑