Skip to main content

一个中文编程语言

Cn-打造全中文编程

简介

Cn是由双叶团队开发的一种中文编程语言

官网:heikeling.github.io

开发人员: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!

Release files for cnforpy 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cnforpy 1.0.1
File Size Uploaded
cnforpy-1.0.1.tar.gz 13.1 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for cnforpy 1.0.1
File Interpreter ABI Platform
cnforpy-1.0.1-py3.10.egg Legacy Egg format - - Details
cnforpy-1.0.1-py3.9.egg Legacy Egg format - - Details
cnforpy-1.0.1-py3.8.egg Legacy Egg format - - Details

Total release size: 60.0 kB

Release files / cnforpy-1.0.1.tar.gz

Download URL cnforpy-1.0.1.tar.gz
Size 13.1 kB
Tags Source
SHA-256 checksum
How to use checksums
aa345fa8f5a340f9480b45c6e5913def99ae9c4ba0b1592d73cbdb7ef111ddab
BLAKE2b-256 checksum
How to use checksums
21916ea34170da7e5d323f5c301f162fa5ed93ce691498a7a1cf2c242bc219d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.4

Release files / cnforpy-1.0.1-py3.10.egg

Download URL cnforpy-1.0.1-py3.10.egg
Size 15.7 kB
Tags Egg
SHA-256 checksum
How to use checksums
a51e3f02e2ac1a68519ae3d6d668c8254d769a0c564d39b8be99a5a48d751452
BLAKE2b-256 checksum
How to use checksums
738619bc379380512baa430f5db3f7f8dca67deab731d75dcec409305f4cc686
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.4

Release files / cnforpy-1.0.1-py3.9.egg

Download URL cnforpy-1.0.1-py3.9.egg
Size 15.6 kB
Tags Egg
SHA-256 checksum
How to use checksums
e608b7fb332a2e3242ad376cd93af94d415d0e3d5897ecfaa93694fc6a2a7f45
BLAKE2b-256 checksum
How to use checksums
95c1332f885195e5bdb946957d485a78da5c56508abec2ae9f88072c3450c045
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.4

Release files / cnforpy-1.0.1-py3.8.egg

Download URL cnforpy-1.0.1-py3.8.egg
Size 15.6 kB
Tags Egg
SHA-256 checksum
How to use checksums
4b5b60752104d9cf257d0c814a4c2bfb3ddd5b3d80b5e990ee45f7eb8eaefd6b
BLAKE2b-256 checksum
How to use checksums
ba949402cc835bf86d05cb2698e7cd541cac3013eceb3acb11e7f2c2d0fc375c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.4

Release history Release notifications | RSS feed

This release

1.0.1 This release

4 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page