Warum LLSP in PY konvertieren?
.llsp is a word-block (Scratch-style) SPIKE project, while .py is plain Python text you can run in the SPIKE App's Python mode, in an editor, or version-control with git. People convert to Python for real code control, reuse, and readable diffs.
Wie man LLSP in PY konvertiert
pyspikon
Unzip the .llsp, then run python pyspikon.py path-to-file new-file-path to generate a .py from the project's project.json. Note the tool is deprecated and can be glitchy.
LEGO Education SPIKE App (Python mode)
Open a new Python project in the SPIKE App and re-create the logic as code; this is the most reliable way to get clean, runnable .py.
flippertools
Use this command-line toolkit for SPIKE/MINDSTORMS project files to inspect and pull the program out of the .llsp before hand-porting it to Python.
Über diese Formate
Eine .llsp-Datei ist ein Projekt, das mit der LEGO Education SPIKE App Version 2 gespeichert wurde. Sie enthält das blockbasierte oder Python-Programm, das ein Schüler für einen SPIKE Prime…
.LLSP-Details öffnen →Eine .py-Datei ist eine Python-Quellcodedatei - reiner Text mit einem Programm oder Skript, das in der Programmiersprache Python geschrieben wurde. Um den Code zu lesen, öffnen Sie die…
.PY-Details öffnen →Qualität & worauf zu achten ist
- Konverter decken nicht jeden Block ab - Events und „Eigene Blöcke“ werden häufig übersprungen und müssen manuell neu geschrieben werden.
- pyspikon ist als veraltet markiert, daher muss die Ausgabe möglicherweise bereinigt werden, bevor sie auf dem Hub läuft.
- Ein Wort-Block-Projekt lässt sich selten eins zu eins auf idiomatisches Python übertragen; betrachten Sie die Ausgabe als ersten Entwurf.
Häufig gestellte Fragen
Wird pyspikon noch gepflegt?
Welche Blöcke lassen sich nicht konvertieren?
Kann ich die .py auf meinem SPIKE-Hub ausführen?
Wo ist das eigentliche Programm in einer .llsp gespeichert?
project.json, welche die Konverter parsen, um die Python-Datei zu erstellen.