TypePHP 编译器
https://swoole.com/aot/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
459 B
17 lines
459 B
<?php
|
|
|
|
/** @generated from examples/python/version.py */
|
|
use python\sys;
|
|
|
|
function main(): void
|
|
{
|
|
if (sys\version_info < python\tuple([3, 8])) {
|
|
echo '此脚本需要 Python 3.8 或更高版本', "\n";
|
|
exit(1);
|
|
} else {
|
|
echo '当前 Python 版本: ' .
|
|
sys\version_info->major->toString() . '.' .
|
|
sys\version_info->minor->toString() . '.' .
|
|
sys\version_info->micro->toString(), "\n";
|
|
}
|
|
}
|
|
|