首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > Python > 历史为你提供了一种方式在C语法编写Python代码!

历史为你提供了一种方式在C语法编写Python代码!

资 源 简 介

Cpy - A C-like scripting language Cpy is the real general purposed dynamic c-like syntax scripting language in the 21st century. Cpy provides you a way to write Python codes in C syntax! Download & Install Hello World! ``` // file: hello.cpy printf("Hello World! "); $ cpy hello.cpy Hello World! $ ``` Reading from stdin ``` // file: stdin.cpy print "input "q" to quit:"; while(true){ printf("> "); line = stdin.readline(); line = line.strip().lower(); if(line == "q"){ print "bye."; break; }else{ print "your input:", repr(line); } } ``` classes and functions ``` class A{ public a = 0; public static s = 1; function init(a){ this.a = a; print "A init", a; } function f(a, b=1){ return a + b; } } <

文 件 列 表

cpy
.DS_Store
antlr3
cpy
cpy.bat
cpy.py
engine.py
Eval.g
Eval.py
Eval.tokens
Expr.g
Expr.tokens
ExprLexer.py
ExprParser.py
Makefile
Readme.txt
samples
test.cpy

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP