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

Python3 Read 方法

#!/usr/bin/python3

# Open a file
fo = open("foo.txt", "r+")
str = fo.read(10)
print ("Read String is : ", str)

# Close opened file
fo.close()

目录

分类