Python3.8をダウンロードしたあとで、
Cドライブ直下、C:¥Python38に展開することが前提。
下記環境通りに設定すれば、Python38でコンパイルできるのと、
Python2シリーズとPython38(最新)で出力がみれます。
前回の記事内容どおり、参考程度にどうぞ。
自分宛、備忘録です。
C:\Program Files (x86)\ZeusLite\zpython.cmd
@echo off REM Move to the file's directory cd %2 REM Remove the double quotes from the file name argument set file_name=%1 set file_name=%file_name:"=% REM Alternative syntax check option is to use Python itself call C:\Python38\python.exe -c "compile(open('%file_name%').read(), '%file_name%', 'exec')"