Python code can be written in Chinese using specialized software tools designed to support this functionality, enabling Chinese-speaking developers to code and execute Python applications with more ease and accuracy.
One of the best things about Zhpy is that it is independent of the Python version. It comes bundled with a command line tool, interpreter, bi-directional zhpy python code translation, Chinese shell script capability, in-place ini reference feature for keyword reuse, and excellent documentation, including Byte of Python with Chinese examples.
The core of Zhpy is a lightweight Python module and Chinese source converter based on Python, which provides an interpreter and command line tool to translate Zhpy code to Python. You can invoke the interpreter with the 'zhpy' command instead of 'python' in the command line, which allows you to execute source code written in either Chinese or English. The Zhpy interpreter also supports an autocomplete function that saves your typing.
Zhpy provides a method called 'zh_exec' that allows you to embed Chinese script in Python. It can also be used as a Chinese shell script. The Zhpy code written in Traditional and Simplified Chinese can be translated and converted to natural Python code. This means that you can execute it as normal Python code and use it in standard Python programs.
Another great feature of Zhpy is that bidirectional Python-Zhpy translation is possible. With the 'zhpy' command line tool, you can translate normal Python programs to Traditional (.twpy) or Simplified (.cnpy) Chinese Zhpy source. The framework is not difficult to extend to other languages, such as Japanese or Korean.
In summary, Zhpy on Python is an excellent software tool for beginners in China and Taiwan who want to learn Python in their native language. It provides the full-featured Python language with Chinese support, including fully tested Chinese keywords, variables, and parameter support, Chinese shell script capability and bidirectional Python-Zhpy translation. Zhpy is easy to use and comes with great documentation to help you get started.
Version 1.7.2: N/A