摘要: 1、打开文件 - os.OpenFile 以重写方式打开fileName指定的文件,若不存在则创建该文件: logFile, err = os.OpenFile(fileName, os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0755) 以追加方式打开文件fileName指定 阅读全文
posted @ 2022-04-04 13:17 DHChris 阅读(1781) 评论(0) 推荐(0)