Skip to content

Write Python code in Chinese, just for fun ~(∠・ω< )⌒★

License

Notifications You must be signed in to change notification settings

Vincent-the-gamer/pycn

Repository files navigation

PyCN

用中文写Python代码, 图一乐~(∠・ω< )⌒★
中文文档 | English

游乐场

快速体验Pycnhttps://mayu.vince-g.xyz/code-runner

记得把语言切换至 pycn

playground

预览

preview

使用文档

在这里查看PyCN使用文档:https://pycn.vince-g.xyz/zh_hans/

构建

Important

Pycn静态编译依赖于特定Python版本,所以你需要在一个拥有相同版本的环境才能正常运行这个构建。

举个例子:如果你使用Python 3.12.x版本编译你的Pycn(Cargo会调用你系统中默认Python版本来编译),那么你需要一个安装了Python3.12.x的环境来运行这个构建。

# pycn
cargo build -p pycn --release

# pycn-dylib
cargo build -p pycn-dylib --release

# Node.js/Web WASM
cd parser-wasm
wasm-pack build --out-dir output # ES Module (默认参数:--target bundler)
wasm-pack build --target nodejs --out-dir output # CommonJS
wasm-pack build --target web --out-dir output # Web

# HTTP Server
cargo build -p http-server --release

开源证书

MIT 证书

版权所有 (c) 2025-现在 Vincent-the-gamer https://github.com/Vincent-the-gamer

About

Write Python code in Chinese, just for fun ~(∠・ω< )⌒★

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages