Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

为什么我生成的文件为空 #1

Open
ybxgood opened this issue Jun 9, 2018 · 6 comments
Open

为什么我生成的文件为空 #1

ybxgood opened this issue Jun 9, 2018 · 6 comments

Comments

@ybxgood
Copy link

ybxgood commented Jun 9, 2018

No description provided.

@zealotCE
Copy link
Owner

可以具体说说吗?
另外你有给他准备角色名单吗?

@Johnnydaszhu
Copy link

同上,我如果按照原来的代码只修改了名单和书的path后,就会出现name 'file' is not defined;
另外,这个注释很让人迷糊:
'''
# 默认path 懒得删了
self._content_path = content_path
self._dict_path = dict_path
'''

其实大佬并不需要文件大小比较,如果能够直接置换那两个文件的地址就好了!

@zealotCE
Copy link
Owner

同上,我如果按照原来的代码只修改了名单和书的 path 后,就会出现 name 'file' is not defined;
另外,这个注释很让人迷糊:
'''

默认 path 懒得删了

self._content_path = content_path
self._dict_path = dict_path
'''

其实大佬并不需要文件大小比较,如果能够直接置换那两个文件的地址就好了!

比较大小其实是为了偷懒。文件塞进去就可以了。
如果要定义文件地址的话,不使用local_file_path方法直接定义就好了。

@zealotCE
Copy link
Owner

同上,我如果按照原来的代码只修改了名单和书的 path 后,就会出现 name 'file' is not defined;
另外,这个注释很让人迷糊:
'''

默认 path 懒得删了

self._content_path = content_path
self._dict_path = dict_path
'''

其实大佬并不需要文件大小比较,如果能够直接置换那两个文件的地址就好了!

那个注释其实是当时懒,忘记删除了。(最早我写的时候就是指定的path)

@KirakiraZLY
Copy link

大佬,我刚刚试了你的代码,用你的那两个txt跑出来的csv也是空的

@zealotCE
Copy link
Owner

zealotCE commented Dec 7, 2021

大佬,我刚刚试了你的代码,用你的那两个txt跑出来的csv也是空的

捂脸,这个你得说说你的运行环境。
不好意思,太久没看这个repo 才看到问题。
跑出来为空蛮奇怪的

你方便的话,可以考虑给我你的文件。(发邮箱即可)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants