摘要: python向磁盘写入内容 方式1 #文件路径 file="D:\\a.txt" file_path=open(file,"a+") print("好好学习",file=file_path) #关闭流 file_path.close() 方式2 file="D:\\b.txt" with open( 阅读全文
posted @ 2021-07-16 21:23 mx_info 阅读(343) 评论(0) 推荐(0) 编辑
摘要: 基于python的学生信息管理系统 源码 """ Welcome to Python Life is short , You need python author: MX_INFO version: 1.0 """ import os #文件路径 filename="student.txt" #主菜 阅读全文
posted @ 2021-07-16 20:52 mx_info 阅读(427) 评论(0) 推荐(0) 编辑