bmxbmx3 / cn_sort Goto Github PK
View Code? Open in Web Editor NEW中文排序:按拼音/笔顺快速排序简体中文词组(百万数量级,可含中英/多音字)。如果对您有所帮助,欢迎点个star鼓励一下。
License: MIT License
中文排序:按拼音/笔顺快速排序简体中文词组(百万数量级,可含中英/多音字)。如果对您有所帮助,欢迎点个star鼓励一下。
License: MIT License
openpyxl
>>> from cn_sort.process_cn_word import sort_word_list
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/ubuntu/.pyenv/versions/3.6.13/lib/python3.6/site-packages/cn_sort/__init__.py", line 2, in <module>
from .process_cn_word import *
File "/home/ubuntu/.pyenv/versions/3.6.13/lib/python3.6/site-packages/cn_sort/process_cn_word.py", line 8, in <module>
import openpyxl
ModuleNotFoundError: No module named 'openpyxl'
\\
改成 /
找不到文件导致的错误:
>>> from cn_sort.process_cn_word import sort_word_list
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/ubuntu/.pyenv/versions/3.6.13/lib/python3.6/site-packages/cn_sort/__init__.py", line 2, in <module>
from .process_cn_word import *
File "/home/ubuntu/.pyenv/versions/3.6.13/lib/python3.6/site-packages/cn_sort/process_cn_word.py", line 24, in <module>
logging.config.fileConfig("".join([current_package_path, "\\res\\logging.conf"]))
File "/home/ubuntu/.pyenv/versions/3.6.13/lib/python3.6/logging/config.py", line 76, in fileConfig
formatters = _create_formatters(cp)
File "/home/ubuntu/.pyenv/versions/3.6.13/lib/python3.6/logging/config.py", line 109, in _create_formatters
flist = cp["formatters"]["keys"]
File "/home/ubuntu/.pyenv/versions/3.6.13/lib/python3.6/configparser.py", line 959, in __getitem__
raise KeyError(key)
KeyError: 'formatters'
logging.config.fileConfig("".join([current_package_path, "\\res\\logging.conf"]))
/home/ubuntu/.pyenv/versions/3.6.13/lib/python3.6/site-packages/cn_sort/process_cn_word.py:24:logging.config.fileConfig("".join([current_package_path, "\\res\\logging.conf"]))
/home/ubuntu/.pyenv/versions/3.6.13/lib/python3.6/site-packages/cn_sort/process_cn_word.py:47: all_word_json_path = "".join([current_package_path, "\\res\\all_word.json"])
/home/ubuntu/.pyenv/versions/3.6.13/lib/python3.6/site-packages/cn_sort/process_cn_word.py:403: logging_file_path = "".join([current_package_path, "\\res\\logging.conf"]) # 日志配置文件路径
/home/ubuntu/.pyenv/versions/3.6.13/lib/python3.6/site-packages/cn_sort/decorator.py:38: logging.config.fileConfig("".join([current_package_path,"\\res\\logging.conf"]))
Python 3.6.10 (default, Dec 19 2019, 23:04:32)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from cn_sort.process_cn_word import sort_text_list
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "[ venv ]/lib/python3.6/site-packages/cn_sort/__init__.py", line 2, in <module>
from .process_cn_word import *
File "[ venv ]/lib/python3.6/site-packages/cn_sort/process_cn_word.py", line 20, in <module>
logging.config.fileConfig("".join([current_package_path, "\\res\\logging.conf"]))
File "/usr/lib/python3.6/logging/config.py", line 76, in fileConfig
formatters = _create_formatters(cp)
File "/usr/lib/python3.6/logging/config.py", line 109, in _create_formatters
flist = cp["formatters"]["keys"]
File "/usr/lib/python3.6/configparser.py", line 959, in __getitem__
raise KeyError(key)
KeyError: 'formatters'
如题。我是在做单个生字排序时发现这问题。疙瘩放一起没问题,单字瘩就排不了了。疙瘩两个字是现在2021新人教版六年级上的必会写字。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.