python读写文件数据:with读、写文件
1、with写文件 save_file = "1.txt" str_data = "123a\nbc" with open(save_file, 'a', encoding="utf-8") ...
1、with写文件 save_file = "1.txt" str_data = "123a\nbc" with open(save_file, 'a', encoding="utf-8") ...