mirror of
https://github.com/php-win-ext/phpy.git
synced 2026-03-24 00:42:11 +01:00
16 lines
317 B
PHP
16 lines
317 B
PHP
<?php
|
|
|
|
$operator = PyCore::import("operator");
|
|
$builtins = PyCore::import("builtins");
|
|
$t = PyCore::import('turtle');
|
|
$t->pensize(2);
|
|
$d = 0;
|
|
$__iter = PyCore::iter(PyCore::range(1, 13));
|
|
while ($current = PyCore::next($__iter)) {
|
|
$i = $current;
|
|
$t->forward(40);
|
|
$d += 30;
|
|
$t->seth($d);
|
|
}
|
|
$t->done();
|