Stay hungry,Stay foolish.
file.write(str)的参数是一个字符串,就是你要写入文件的内容.file.writelines(sequence)的参数是序列,比如列表,它会迭代帮你写入文件。
posted on 2017-08-23 11:18 懵懂的菜鸟 阅读(472) 评论(0) 编辑 收藏 举报
Powered by: 博客园 Copyright © 2024 懵懂的菜鸟 Powered by .NET 8.0 on Kubernetes