12.9.1 Haxe/Python 시작하기(Getting started with Haxe/Python)
12.9.1 Haxe/Python 시작하기(Getting started with Haxe/Python)
Python 타깃은 Haxe 프로그램을 Python 코드로 변환합니다.
간단한 예제:
class Main {
static function main() {
trace("Hello World!");
}
}
컴파일:
haxe --main Main --python main.py
생성된 .py 파일은 Python 3에서 실행할 수 있습니다.