首页| 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
  • IATWAY 1天前 成为了本站会员

  • 大智若愚 1天前 成为了本站会员

  • Mason 1天前 成为了本站会员

  • 1天前 成为了本站会员

  • Half_Punch 2天前 成为了本站会员

  • liqing71718 2天前 成为了本站会员

  • 伟国 2天前 成为了本站会员

  • songy 2天前 成为了本站会员

  • 纯色幽默 2天前 成为了本站会员

  • odd? 2天前 成为了本站会员

0.180687s