We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
为何你在合并1000个评论变成一个合并文件2000_neg.txt或者2000_pos.txt的时候读取的都是每个文件的第一行呢? def getContent(fullname): f = codecs.open(fullname, 'r') content = f.readline() f.close() return content readline()不是只读取了一行吗
The text was updated successfully, but these errors were encountered:
使用readlines()
Sorry, something went wrong.
No branches or pull requests
为何你在合并1000个评论变成一个合并文件2000_neg.txt或者2000_pos.txt的时候读取的都是每个文件的第一行呢?
def getContent(fullname):
f = codecs.open(fullname, 'r')
content = f.readline()
f.close()
return content
readline()不是只读取了一行吗
The text was updated successfully, but these errors were encountered: