12345678910111213141516171819 |
- #!/usr/bin/python3
- import os
- import codecs
- #lst=['5926','5878','5912','5939','5885','4300']
- lst=['4300']
- dir_prefix='/var/www/jared-faq/'
- for l in lst:
- curdir=dir_prefix+l+'/index.html'
- curdir=dir_prefix+l+'/new.html'
- fr=codecs.open(curdir,'r','utf-8')
- lines=fr.readlines()
- fr.close()
- for line in lines:
- print(line)
|