打开: https://github.com/starkware-libs/cairo-lang/releases/tag/v0.9.1 并使用以下方法安装它:pip3 install cairo-lang-0.9.1.zip Cairo 使用 python3.7 进行了测试。 要使其与 python3.6 一起使用,您必须安装contextvars:pip3 install contextvars编译和运行 Cairo:创建一个文件,命名为(test.cairo)具有以下几行:func main():\[ap\] = 1000; ap++ \[ap\] = 2000; ap++ \[ap\] = \[ap - 2\] + \[ap - 1\]; ap++ ret end 编译:运行cairo-compile test.cairo --output test_compiled.json 运行:cairo-run \ --program=test_compiled.json --print_output \ --print_info --relocate_prints 在 http...