美文网首页Python
Python open file text and read f

Python open file text and read f

作者: NieFeng1024 | 来源:发表于2017-02-26 12:50 被阅读97次

    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

    相关文章

      网友评论

        本文标题:Python open file text and read f

        本文链接:https://www.haomeiwen.com/subject/frpowttx.html