MCPcopy Index your code
hub / github.com/Jack-Cherish/python-spider / Writer

Method Writer

biqukan.py:105–116  ·  view source on GitHub ↗
(self, name, path, text)

Source from the content-addressed store, hash-verified

103 2017-05-06
104 """
105 def Writer(self, name, path, text):
106 write_flag = True
107 with open(path, 'a', encoding='utf-8') as f:
108 f.write(name + '\n\n')
109 for each in text:
110 if each == 'h':
111 write_flag = False
112 if write_flag == True and each != ' ':
113 f.write(each)
114 if write_flag == True and each == '\r':
115 f.write('\n')
116 f.write('\n\n')
117
118if __name__ == "__main__":
119 print("\n\t\t欢迎使用《笔趣看》小说下载小工具\n\n\t\t作者:Jack-Cui\t时间:2017-05-06\n")

Callers 1

biqukan.pyFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected