Python open file text and read f
2017-02-26 本文已影响97人
NieFeng1024
def read_text():
print("open file text!")
file_text = open("/Users/Yan/Desktop/hello.text")
file_content = file_text.read()
print(file_content)
read_text()
Python open file text and read file content.png