python write和writelines的区别file.write(str)的参数是一个字符串,就是你要写入文件的内容.file.writelines(sequence)的参数是序列,比如列表,它 ...
確定! 回上一頁