User Tools

Site Tools


read_py_file

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
read_py_file [2018/05/02 20:50]
zeppo
read_py_file [2018/05/02 20:50] (current)
zeppo
Line 15: Line 15:
    f = open('​C:​\\temp\\one.txt',​ "​r"​)    f = open('​C:​\\temp\\one.txt',​ "​r"​)
    for line in f.readlines():​    for line in f.readlines():​
- print(line.strip())+      ​print(line.strip())
    ​f.close()    ​f.close()
  
  
read_py_file.txt ยท Last modified: 2018/05/02 20:50 by zeppo