
OpenPython 使 MicroPython 可在 OpenComputers 上使用。
MicroPython 是用于嵌入式设备的 Python,与 CPython 不同。
截至 2018 年 10 月,MicroPython 目前部分兼容 Python 3.4 版本。
特性包括:
- 完全可持久化。
- 在沙箱环境中运行,无需单独的本地 DLL。
- 支持虚拟文件系统。
- 可以调用其他组件,并支持 Lua 架构的 UserData。
限制包括:
- 固件大小为 256 KB,内存限制与 Lua 架构相同,但栈分配在独立的内存中。
- 由于电池部分包含在内,大多数模块难以使用。
- 操作系统尚未完全实现,因此目前仅能运行 Python 解释器。
- 不支持 Ctrl + C,如果不小心运行了无限重复的代码,唯一的停止方法是关闭电脑再重新启动。
要使用 Python 架构,需要以下物品:
- EEPROM(OpenPython):很抱歉,你必须从创造模式标签页中获取物品。
- 软盘(OpenPython OS):此物品可以通过制作软盘和屏幕获得,或者你可以在创造模式标签页中查看。
- OpenPython CPU:按住 Shift + 右键点击 Lua 架构的 CPU,可以选择 OpenPython 架构。
目前仍不稳定,但我们计划在未来进行进一步改进。
我需要熟悉 OpenComputers 和 Python 的人提供帮助。
感谢游玩。

OpenPython makes micropython available on OpenComputers.
micropython is Python for embedded devices and is different from CPython.
Currently, micropython is partially compatible with Python version 3.4 as of October 2018.
Features include:
- Fully persistable.
- Runs in a sandboxed environment and does not require a separate native DLL.
- Supports virtual file system.
- It can call other components and supports Lua architecture's UserData.
Limitations include:
- The firmware is 256 KB and the memory limit has the same limit as the Lua architecture, but the stack is allocated in a separate memory.
- Most modules are difficult to use because the battery is partially included.
- The operating system is not yet fully implemented, so the Python interpreter now runs.
- Ctrl + C is not supported, so if you accidentally run infinite repeated code, the only way to stop it is to turn the computer off and then on.
To use the Python architecture, you need the following items:
- EEPROM (OpenPython): I'm sorry, but you have to bring items from the Creative tab.
- Floppy Disk (OpenPython OS): This item can be obtained by creating a floppy disk and Scrench, or you can check it on the Creative tab.
- OpenPython CPU: You can choose OpenPython architecture by holding Shift + Right Click on the Lua architecture CPU.
It is still unstable, but we plan to make further improvements in the future.
I need help from people who are familiar with OpenComputers and Python.
Thank you for playing.
评论 0
登录后参与评分
还没有评论,来抢沙发吧