摘要: 转自:https://www.cnblogs.com/666666pingzi/p/11462722.html codecs专门用作编码转换,当我们要做编码转换的时候可以借助codecs很简单的进行编码转换 codecs模块提供一个open方法,三个参数encoding, errors, buffe 阅读全文
posted @ 2021-02-08 18:22 想念让我更烦恼 阅读(372) 评论(0) 推荐(0) 编辑
摘要: 转自:https://www.cnblogs.com/yangzhe0617/p/11038723.html open 1,打开文件 file=open("文件名",“读写模式”) 2,操作文件 *** 3,关闭文件 file.close() 注意事项: 使用open方法,文件操作完毕之后必须关闭, 阅读全文
posted @ 2021-02-08 14:06 想念让我更烦恼 阅读(281) 评论(0) 推荐(0) 编辑
摘要: 1:SyntaxError: positional argument follows keyword argument 转自:https://blog.csdn.net/weixin_42168614/article/details/88429838 出现这个bug的原因在于参数位置不正确,关键字参 阅读全文
posted @ 2021-02-08 13:44 想念让我更烦恼 阅读(273) 评论(0) 推荐(0) 编辑