增强版中文Python语法解释器,全面支持中文变量名、函数名、类名
Project description
cnpy_plus - 增强版中文Python语法解释器
cnpy_plus 是一款轻量级中文Python语法解释器,全面支持中文变量名、中文函数名、中文类名,可将中文语法代码无缝转换为标准Python代码并直接执行,覆盖Python所有核心语法。
核心特性
- 中文标识符全面支持:变量名、函数名、类名均可使用纯中文(如
学生姓名 = "小明"、定义 计算总和()、类 学生()) - 全Python语法覆盖:条件判断、循环、函数、类、异常处理、异步语法等均支持中文关键字
- 内置函数中文映射:默认支持
打印()、输入()、长度()等常用内置函数的中文调用 - 无缝转换与执行:一键转换中文代码为Python代码,也可直接执行中文代码并返回执行结果
- 友好错误提示:提供行号、列号的精准语法错误提示,便于调试
安装方式
方式1:从PyPI安装(推荐)
pip install zhpych
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
zhpych-0.1.0.tar.gz
(2.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file zhpych-0.1.0.tar.gz.
File metadata
- Download URL: zhpych-0.1.0.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
74e8b66b0d164c252558488bfb568a9337220513372c1bafb6e1427db9e53582
|
|
| MD5 |
548253c4566512767cc47b7f4a34109e
|
|
| BLAKE2b-256 |
3e82c8150e53a3f49fb0929e7699848d1eb72dd5eb393bc74cefcc6ba73f2737
|
File details
Details for the file zhpych-0.1.0-py3-none-any.whl.
File metadata
- Download URL: zhpych-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aca1fe9ae6e5e2725b093c705be91d86c1b6d025c48ce09f30eb32e9b776bac4
|
|
| MD5 |
eb89df162c80f438b0f372d6705a8f19
|
|
| BLAKE2b-256 |
fd7ce54ebdfb70628a7ddca41167da4a4406854874cc7ab34230524b0496c908
|