文件读写 12 次浏览 如果文件不是留做读写,那文件就没有意义了。 不同编程语言的文件读写 Python open打开的文件,调用write方法的参数必须是字符串,不能是数字。否则会报错:“TypeError: write() argument must be str, not int”