Toggle navigation
Toggle navigation
This project
Loading...
Sign in
万朱浩
/
Venue-Ops
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
kpt
2024-07-05 01:53:40 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c0385809ea45deb7dde2cf8d5fe76b65b794e861
c0385809
1 parent
2713bf9f
【cipingTotal】解决路径错误
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
3 deletions
utils/cipingTotal.py
utils/cipingTotal.py
View file @
c038580
...
...
@@ -4,7 +4,7 @@ import re
def
main
():
reader
=
open
(
'./cutComments.txt'
,
'r'
,
encoding
=
'utf8'
)
strs
=
reader
.
read
()
result
=
open
(
'cipingTotal.csv'
,
'w'
,
encoding
=
'utf8'
)
result
=
open
(
'
./utils/
cipingTotal.csv'
,
'w'
,
encoding
=
'utf8'
)
# 分词,去重,列表
word_list
=
jieba
.
cut
(
strs
,
cut_all
=
True
)
...
...
@@ -28,5 +28,3 @@ def main():
for
i
in
range
(
100
):
print
(
list_count
[
i
],
file
=
result
)
\ No newline at end of file
if
__name__
==
'__main__'
:
print
(
main
())
\ No newline at end of file
...
...
Please
register
or
login
to post a comment