ファイルIO

#写文件
オープンout_flieとして( "WT"、 "byh.txt")を有する:
out_flie.write( "121431 \ n414")
"RT"、 "byh.txt")オープンとin_fileとして:
テキスト= in_file.read ()
印刷(テキスト)

输出结果:

121431
414

おすすめ

転載: www.cnblogs.com/byh7595/p/11959276.html