This commit is contained in:
2023-10-12 21:11:42 +08:00
parent ca2fd59f2b
commit 3eb199cbf0
4 changed files with 49 additions and 8 deletions

View File

@@ -1,4 +1,4 @@
# API Reference shows all functions in Guan package. The current version is guan-0.0.191, updated on December 12, 2023.
# API Reference shows all functions in Guan package. The current version is guan-0.0.192, updated on December 12, 2023.
import guan
@@ -818,8 +818,14 @@ degenerate_k_array, degenerate_eigenvalue_array = guan.find_degenerate_points(k_
# 选取一个种子生成固定的随机整数
rand_num = guan.generate_random_int_number_for_a_specific_seed(seed=0, x_min=0, x_max=10)
# 使用jieba分词
words = guan.divide_text_into_words(text)
# 判断某个字符是中文还是英文或其他
word_type = guan.check_Chinese_or_English(a)
# 统计中英文文本的字数
num_words = guan.count_words(text)
num_words = guan.count_words(text, include_space=0, show_words=0)
# 统计运行的日期和时间,写进文件
guan.statistics_with_day_and_time(content='', filename='a', file_format='.txt')