📅  最后修改于: 2022-03-11 14:46:03.618000             🧑  作者: Mango
# Program to read the specific length
# of characters in a file using read() function
file = open("python.txt", "r")
content = file.read(20)
print(content)
file.close()