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
agbot 读取数据文件和配置文件时,需求需要支持 gbk 和 utf-8 两种编码格式
fishbase 中的 csv_file_to_list(csv_filename, deli=',', del_blank_row=True) 和 conf_as_dict(conf_filename) 方法增加默认参数 encoding=None,通过该参数指定读取的目标文件的编码。
The text was updated successfully, but these errors were encountered:
在Python2中open操作不支持encoding,Python2 open方法,故改操作在fishbase中Python3版本支持。
open
encoding
fishbase
Sorry, something went wrong.
No branches or pull requests
背景
agbot 读取数据文件和配置文件时,需求需要支持 gbk 和 utf-8 两种编码格式
实现
fishbase 中的 csv_file_to_list(csv_filename, deli=',', del_blank_row=True) 和 conf_as_dict(conf_filename) 方法增加默认参数 encoding=None,通过该参数指定读取的目标文件的编码。
The text was updated successfully, but these errors were encountered: