一个中文编程语言
Project description
一个中文编程语言
Cn-打造全中文编程
简介
Cn是由双叶团队开发的一种中文编程语言
开发人员:Rainwangpupil, Heikeling, Code X
下载
终端输入一下命令:
pip3 install cnforpy
使用
终端输入以下命令:
cnforpy
此时你会看到一个窗口,即为cn的编程页面
打印
类似于Python的print()
语法:
打印:你好CN!
输出:
你好CN!
引用
类似于Python的import
语法:
引用:随机
变量
CN的变量语法:
新建变量:
设置变量名:我最喜欢的编程语言
设置变量值:CN
等同于以下Python代码
我最喜欢的编程语言 = "CN"
随机数
随机数需要引用随机模块
CN随机数语法:
引用:随机
随机数一:52
随机数二:78
另外,你还可以打印随机数
引用:随机
随机数一:52
随机数二:78
打印随机数
终端输出:
62
网络通信
网络通信套用了Python的requests模块,
语法:
引用:请求
请求网站源码:https://baidu.com
请求网页状态:https://heikeling.github.io
询问
询问后,会弹出一个窗口,输入内容,并存储在一个变量中
语法:
询问:你最喜欢的编程语言是什么?
你还可以获取他人的答复
打印:获取答复
终端输出:
(询问你最喜欢的编程语言)
(用户写了CN)
CN
终端控制
这个功能使用了Python的os.system()函数
语法:
引用:终端
终端输入:echo CN是我最喜欢的语言
输出:
CN是我最喜欢的语言
关于CN的介绍就到这里,如果想了解更多,可以到CN语言的官网(https://heikeling.github.io)查看,我就介绍到这里,希望您快乐的使用CN!
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
Built Distributions
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 cnforpy-1.0.1.tar.gz.
File metadata
- Download URL: cnforpy-1.0.1.tar.gz
- Upload date:
- Size: 13.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa345fa8f5a340f9480b45c6e5913def99ae9c4ba0b1592d73cbdb7ef111ddab
|
|
| MD5 |
ad7cc4e872792420c46ec6743b8a0c61
|
|
| BLAKE2b-256 |
21916ea34170da7e5d323f5c301f162fa5ed93ce691498a7a1cf2c242bc219d2
|
File details
Details for the file cnforpy-1.0.1-py3.10.egg.
File metadata
- Download URL: cnforpy-1.0.1-py3.10.egg
- Upload date:
- Size: 15.7 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a51e3f02e2ac1a68519ae3d6d668c8254d769a0c564d39b8be99a5a48d751452
|
|
| MD5 |
8d00bf3d565d1605613adf1a7cdef902
|
|
| BLAKE2b-256 |
738619bc379380512baa430f5db3f7f8dca67deab731d75dcec409305f4cc686
|
File details
Details for the file cnforpy-1.0.1-py3.9.egg.
File metadata
- Download URL: cnforpy-1.0.1-py3.9.egg
- Upload date:
- Size: 15.6 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e608b7fb332a2e3242ad376cd93af94d415d0e3d5897ecfaa93694fc6a2a7f45
|
|
| MD5 |
dd7c5afb2791c478be1a1dd215e2a461
|
|
| BLAKE2b-256 |
95c1332f885195e5bdb946957d485a78da5c56508abec2ae9f88072c3450c045
|
File details
Details for the file cnforpy-1.0.1-py3.8.egg.
File metadata
- Download URL: cnforpy-1.0.1-py3.8.egg
- Upload date:
- Size: 15.6 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4b5b60752104d9cf257d0c814a4c2bfb3ddd5b3d80b5e990ee45f7eb8eaefd6b
|
|
| MD5 |
36bb863958a89cd99c79f0dba58409a6
|
|
| BLAKE2b-256 |
ba949402cc835bf86d05cb2698e7cd541cac3013eceb3acb11e7f2c2d0fc375c
|