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.
14 lines
360 B
14 lines
360 B
<?php
|
|
|
|
function main(): void
|
|
{
|
|
$list = python\list([1, 2, 3]);
|
|
$count = $list->count();
|
|
$contains = $list->contains(2);
|
|
$slice = $list->slice(0, 2)->toArray();
|
|
$set = python\set([1, 2]);
|
|
$member = $set->contains(1);
|
|
$value = python\int(42);
|
|
$value = $list;
|
|
var_dump($count, $contains, $slice, $member, $value->toArray());
|
|
}
|
|
|