Skip to content

sxxyrry/aithon

Repository files navigation

aithon 项目

版权声明 aithon 项目由 是星星与然然呀 开发并维护。

本项目遵循 GNU General Public License v3.0 许可证。

  • 版权所有:© 2025 by sxxyrry_23XR
  • 许可证:GNU GPL v3.0
  • 更多信息:请参阅 LICENSE 文件

联系方式 如果您有任何问题或需要进一步的信息,请通过以下方式联系我们:

aithon Project

Copyright Notice: The aithon project is developed and maintained by 是星星与然然呀.

This project follows the GNU General Public License v3.0 license.

  • Copyright:© 2025 by sxxyrry_23XR
  • licence:GNU GPL v3.0
  • More information:Please refer to the LICENSE document

If you have any questions or need further information, please contact us through the following methods:

中文

使用

前置

终端中运行:pip install -r "requirements.txt的绝对路径"

如果你想使用编辑器,就运行 “Editor.py” 文件。如果你想使用交互模式,就运行 “aithon.py” 文件。如果你想使用下载器,就运行 “aiip.py” 或 “aiInstallPackage.py” 文件。

帮助

在 “aithon.py” 文件中输入 help() 显示帮助文本提示

aithon 的文件后缀是 .ait

语法

使用“print()”输出文本。

""是一个字符串。

''是一个字符串。

1是一个数字。

使用“input()”获取输入。

使用“name=value”设置变量。

使用“name=input()”获取输入。

使用“import(name)”导入模块。

使用“quit()”结束程序的运行。

使用“

def_func name{args}:
    # 代码

”创建一个名为“name”的函数,其参数为“args”。

使用“name(args)”运行名为“name”的函数,该函数具有参数“args”。

使用“

python {args}:
    # Python代码

”创建和运行python代码,并具有参数‘args’(提示:‘args’参数已在前面定义)。

使用 “

if {1}:
    # 代码

” 去创建 if 语句 (1是可以用另一个表达式替换的表达式)。

使用 “

while {1}:
    # 代码

” 去创建 while 语句 (1是可以用另一个表达式替换的表达式)。

怎么运行 aithon 代码?

文件

编辑器
终端:在运行 “Editor.py” 时增加aithon文件的绝对路径参数
编辑器内:上方工具栏 File > Open File (文件 > 打开文件)然后选择文件,点右下角的 Run (运行)
aithon
终端:在运行 “aithon.py” 时增加aithon文件的绝对路径参数

编辑器

写完代码后点右下角的 Run (运行)

aithon

终端:
1. 运行aithon.py
2. 输入内容,回车键运行

English

Usage

Prerequisites

Running in the terminal: pip install - r "absolute path to requirements. txt"

If you want to use the editor, run the "Editor.py" file.

If you want to use interactive mode, run the "aithon.py" file.

If you want to use the downloader, run the "aiip.py" or "aiInstallPackage.py" file.

Help

In the "aithon.py" file, type help() to display the help text.

Tips

The file extension for aithon is .ait

Syntax

Refer to the help text

Help Text

Use "print()" to output text.

"" is a string.

'' is a string.

1 is a number.

Use "input()" to get input.

Use "name = value" to set a variable.

Use "name = input()" to get input.

Use "import()" to import a module.

Use "quit()" to end the run of your program.

Use "

def_func name{args}:
    # Code

" to create a function named 'name' and has arguments 'args'.

Use "name(args)" to run a function named 'name' and has arguments 'args'.

Use "

python {args}:
    # Python Code

" to create and run a python code, and has arguments 'args' (Tips: The 'args' parameter is defined earlier).

Use "

if {1}:
    # Code

" to create a if statement (1 is an expression that can be replaced with another expression).

Use "

while {1}:
    # Code

" to create a while statement (1 is an expression that can be replaced with another expression).

How to Run aithon Code?

Files

Editor
Terminal: & python.exe absolute path Editor.py absolute path aithon file absolute path
Inside the editor: Top toolbar File > Open File then select the file, click Run at the bottom right
aithon
Terminal: & python.exe absolute path aithon.py absolute path aithon file absolute path

Editor

After writing code, click Run at the bottom right

aithon

Terminal:
1. & python.exe absolute path aithon.py absolute path
2. Enter content, press Enter to run

How to Run Python Files?

& python.exe absolute path file absolute path

Replace "file absolute path" with the actual file path you want to execute

About

使用 Python 为底层的新编程语言

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published