A tool to count the file word support markdown and txt
Project description
文件字数统计工具
支持文件类型
目前仅支持markdown(.md)和txt(.txt)文件
使用方法
-
导入countFile函数
-
调用countFile函数
参数1:传入您的文件夹目录位置
参数2:传入您的文件类型
可选参数
- language,默认为中文,language="English"可切换为英文
- mdCountCode:(True/False)是否统计代码,默认为False
from mdcount.countFile import countFile
countFile("../MDCount", ["md"])
目前版本
1.0.0
参考资料:[使用Python读取markdown文件并统计字数
](https://icyhunter.blog.csdn.net/article/details/128424955)
File Word Count Tool
Supported File Types
Currently only supports Markdown (.md) and plain text (.txt) files.
How to Use
-
Import the countFile function.
-
Call the countFile function.
Parameter 1: The path to your target directory.
Parameter 2: The list of file extensions you wish to count.
Optional parameter:
- language, defaults to Chinese. Use language="English" to switch to English output.
- is count code(True/False)? , defaults to False.
from mdcount.countFile import countFile
countFile("../MDCount", ["md"])
Current Version
1.0.0
Reference: [使用Python读取markdown文件并统计字数
](https://icyhunter.blog.csdn.net/article/details/128424955)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file mdcount-1.0.0.tar.gz.
File metadata
- Download URL: mdcount-1.0.0.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8c4d4ed3aa87674c91f53b1ff3ebc125da0f60ab69c9088c70c24f42b7249cba
|
|
| MD5 |
234877bb945dd0d1fe977721695253e0
|
|
| BLAKE2b-256 |
1afce5ca7331a2cbdc79dec62848ea1a05f344801e4e253c090a6508f594b862
|