橘子味的心
标题:Python3 Write 方法

Python3 Write 方法

#!/usr/bin/python3

# Open a file
fo = open("foo.txt", "w")
fo.write( "Python is a great language.\nYeah its great!!\n")

# Close opend file
fo.close()

目录

分类