ChinesePython
From Wikipedia, the free encyclopedia
ChinesePython (中蟒) is a Python programming language using Chinese language lexicon. Besides reserved words and variable names, most data type operations can be coded in Chinese as well.
[edit] Example
The following is an example found on the official website. It prompts the user a question, then responds based on whether the user typed "yes", "no", or anything else.
#!/usr/local/bin/cpython
回答 = 读入('你认为中文程式语言有存在价值吗 ? (有/没有)')
如 回答 == '有':
写 '好吧, 让我们一起努力!'
不然 回答 == '没有':
写 '好吧,中文并没有作为程式语言的价值.'
否则:
写 '请认真考虑后再回答.'
[edit] External links
- ChinesePython official website (Chinese)
- ChinesePython homepage at Sourceforge (English)