Skip to content

Commit

Permalink
Feature v2.5.2 更改csv修改文件名
Browse files Browse the repository at this point in the history
  • Loading branch information
panyi committed Sep 22, 2024
1 parent 136ff92 commit 4cafcb9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ __pycache__/
./proxy.txt
*.txt
.idea
*.csv
# C extensions
*.so
/venv
Expand Down
2 changes: 1 addition & 1 deletion tookit/outputData.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def getCsvHeaders(self, data):

def outputCsv(self, data):
headers = self.getCsvHeaders(data)
with open('score.csv', mode='a+', newline='', encoding='utf-8-sig') as file:
with open(self.filename, mode='a+', newline='', encoding='utf-8-sig') as file:
writer = csv.writer(file)

# 如果尚未写入表头,则写入表头
Expand Down

0 comments on commit 4cafcb9

Please sign in to comment.