This commit is contained in:
guanjihuan 2023-10-12 21:16:40 +08:00
parent 3eb199cbf0
commit 6ad0d78286
4 changed files with 5 additions and 4 deletions

View File

@ -1,4 +1,4 @@
# API Reference shows all functions in Guan package. The current version is guan-0.0.192, updated on December 12, 2023.
# API Reference shows all functions in Guan package. The current version is guan-0.0.193, updated on December 12, 2023.
import guan

View File

@ -1,7 +1,7 @@
[metadata]
# replace with your username:
name = guan
version = 0.0.192
version = 0.0.193
author = guanjihuan
author_email = guanjihuan@163.com
description = An open source python package

View File

@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: guan
Version: 0.0.192
Version: 0.0.193
Summary: An open source python package
Home-page: https://py.guanjihuan.com
Author: guanjihuan

View File

@ -1,6 +1,6 @@
# Guan is an open-source python package developed and maintained by https://www.guanjihuan.com/about (Ji-Huan Guan, 关济寰). The primary location of this package is on website https://py.guanjihuan.com. GitHub link: https://github.com/guanjihuan/py.guanjihuan.com.
# The current version is guan-0.0.192, updated on December 12, 2023.
# The current version is guan-0.0.193, updated on December 12, 2023.
# Installation: pip install --upgrade guan
@ -3595,6 +3595,7 @@ def check_Chinese_or_English(a):
# 统计中英文文本的字数,默认不包括空格
def count_words(text, include_space=0, show_words=0):
import jieba
import guan
words = jieba.lcut(text)
new_words = []
if include_space == 0: