Psyduck - 可達鴨 之 鴨力山大2


Server : LiteSpeed
System : Linux premium217.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User : alloknri ( 880)
PHP Version : 8.1.34
Disable Function : NONE
Directory :  /lib64/python3.8/turtledemo/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib64/python3.8/turtledemo/__pycache__/penrose.cpython-38.pyc
U

e5d3
�@s�dZddlTddlmZmZddlmZmZdZ	deded�Z
d	d
�Zdd�Zd
d�Z
dd�Zd&dd�Zdd�Zdd�Zdd�Zdd�Zddeddfdd�Zefd d!�Zd"d#�Zed$kr�e�Ze�d%S)'a�       xturtle-example-suite:

          xtx_kites_and_darts.py

Constructs two aperiodic penrose-tilings,
consisting of kites and darts, by the method
of inflation in six steps.

Starting points are the patterns "sun"
consisting of five kites and "star"
consisting of five darts.

For more information see:
 http://en.wikipedia.org/wiki/Penrose_tiling
 -------------------------------------------
�)�*)�cos�pi)�perf_counter�sleepgP�/7���?���
cCsTt|}td�t|�td�t|�td�t|�td�t|�td�dS)N�$�l���f�lt�fd�rt��l�fl�r�*/usr/lib64/python3.8/turtledemo/penrose.py�kitesrcCsTt|}td�t|�td�t|�td�t|�td�t|�td�dS)Nr
rr
rrrr�dart%srcCs�|dkrFt�\}}tt��t|d�t|d�}}}dt|||f<dSt|}td�t||d�t|�t	d�t
||d�td�t|t�t	d�t
||d�td�t|�t	d	�t||d�td�dS)
NrrTr
�r���)�pos�int�heading�round�tiledictrr�inflatedartrr�inflatekite�d�r�nZpx�py�h�x�yrrrrr#1s(
"r#cCs�|dkrFt�\}}tt��t|d�t|d�}}}dt|||f<dSt|}t||d�td�t|�t	d�t
||d�td�t|t�t	d�t
||d�t|�t	d	�dS)
NrrFrr
r�6�~r)rrrr r!rr#rrrr"r$r%rrrr"Gs"
"r"cCs�t�|t|}t|d|d|�tD]T}|\}}}t||�t|�t|rftd�tdd�ntd�tdd�t�q*dS)NgY@r�black)r��?rr)r.rr)	�clearrZ	shapesizer!Zsetpos�
setheading�shapeZcolorZstamp)rr&�th�kr(r)r*rrr�drawZs


r4cCs$td�D]}t||�td�qdS�N��H)�ranger#r�rr&�irrr�sunjs
r;cCs$td�D]}t||�td�qdSr5)r8r"rr9rrr�staros
r<cCsTtd�t�td�t�tdt��t�td�t�tdt��td�dS)Nr�drrr)�tracerZ
begin_polyrZend_polyZregister_shapeZget_polyrrrrr�
makeshapestsr?cCs$t�t�t�t�td�dS)N�user)�resetZhtZpur?Z
resizemoderrrr�start�s
rB���)rrcCsxt|�td�iatd�|||�t|||�td�tdd�tD��}tdd�tD��}td||||f�dS)NrrcSsg|]}t|r|�qSr�r!��.0r)rrr�
<listcomp>�sztest.<locals>.<listcomp>cSsg|]}t|s|�qSrrErFrrrrH�sz"%d kites and %d darts = %d pieces.)�gotor0r!r>r4�len�print)rr&�fun�startposr2ZnkZndrrr�test�s
rNcCsLt�td�D]8}t�}td||�t�}||}|dkrtd|�qdS)N�i,r)rBr8�clockrNr)rLr:�a�b�trrr�demo�srTcCsjtd�tddd�tt�td�tt�td�tdd�tddd�td	d
dd�t	d
ddd�dS)NZlogog333333�?rrr-i8���gffffff�?rzPlease wait...�center)zArial Blackr
Zbold)ZalignZfontiXrO)�F�u)rMZDone)
�modeZbgcolorrTr;rr<ZpencolorrI�writerNrrrr�main�s
�rZ�__main__N)r)�__doc__ZturtleZmathrr�timerrPrrr$rrr#r"r4r;r<r?rBrNrTrZ�__name__�msgZmainlooprrrr�<module>s(



Name
Size
Permissions
Options
__init__.cpython-38.opt-1.pyc
0.445 KB
-rw-r--r--
__init__.cpython-38.opt-2.pyc
0.131 KB
-rw-r--r--
__init__.cpython-38.pyc
0.445 KB
-rw-r--r--
__main__.cpython-38.opt-1.pyc
12.838 KB
-rw-r--r--
__main__.cpython-38.opt-2.pyc
9.679 KB
-rw-r--r--
__main__.cpython-38.pyc
12.838 KB
-rw-r--r--
bytedesign.cpython-38.opt-1.pyc
4.175 KB
-rw-r--r--
bytedesign.cpython-38.opt-2.pyc
3.699 KB
-rw-r--r--
bytedesign.cpython-38.pyc
4.175 KB
-rw-r--r--
chaos.cpython-38.opt-1.pyc
1.674 KB
-rw-r--r--
chaos.cpython-38.opt-2.pyc
1.674 KB
-rw-r--r--
chaos.cpython-38.pyc
1.674 KB
-rw-r--r--
clock.cpython-38.opt-1.pyc
3.411 KB
-rw-r--r--
clock.cpython-38.opt-2.pyc
3.182 KB
-rw-r--r--
clock.cpython-38.pyc
3.411 KB
-rw-r--r--
colormixer.cpython-38.opt-1.pyc
1.777 KB
-rw-r--r--
colormixer.cpython-38.opt-2.pyc
1.777 KB
-rw-r--r--
colormixer.cpython-38.pyc
1.777 KB
-rw-r--r--
forest.cpython-38.opt-1.pyc
3.247 KB
-rw-r--r--
forest.cpython-38.opt-2.pyc
2.927 KB
-rw-r--r--
forest.cpython-38.pyc
3.247 KB
-rw-r--r--
fractalcurves.cpython-38.opt-1.pyc
2.821 KB
-rw-r--r--
fractalcurves.cpython-38.opt-2.pyc
2.515 KB
-rw-r--r--
fractalcurves.cpython-38.pyc
2.821 KB
-rw-r--r--
lindenmayer.cpython-38.opt-1.pyc
2.748 KB
-rw-r--r--
lindenmayer.cpython-38.opt-2.pyc
2.249 KB
-rw-r--r--
lindenmayer.cpython-38.pyc
2.748 KB
-rw-r--r--
minimal_hanoi.cpython-38.opt-1.pyc
2.761 KB
-rw-r--r--
minimal_hanoi.cpython-38.opt-2.pyc
2.167 KB
-rw-r--r--
minimal_hanoi.cpython-38.pyc
2.761 KB
-rw-r--r--
nim.cpython-38.opt-1.pyc
7.169 KB
-rw-r--r--
nim.cpython-38.opt-2.pyc
6.966 KB
-rw-r--r--
nim.cpython-38.pyc
7.169 KB
-rw-r--r--
paint.cpython-38.opt-1.pyc
1.595 KB
-rw-r--r--
paint.cpython-38.opt-2.pyc
0.966 KB
-rw-r--r--
paint.cpython-38.pyc
1.595 KB
-rw-r--r--
peace.cpython-38.opt-1.pyc
1.094 KB
-rw-r--r--
peace.cpython-38.opt-2.pyc
0.873 KB
-rw-r--r--
peace.cpython-38.pyc
1.094 KB
-rw-r--r--
penrose.cpython-38.opt-1.pyc
4.563 KB
-rw-r--r--
penrose.cpython-38.opt-2.pyc
4.154 KB
-rw-r--r--
penrose.cpython-38.pyc
4.563 KB
-rw-r--r--
planet_and_moon.cpython-38.opt-1.pyc
3.404 KB
-rw-r--r--
planet_and_moon.cpython-38.opt-2.pyc
2.963 KB
-rw-r--r--
planet_and_moon.cpython-38.pyc
3.404 KB
-rw-r--r--
rosette.cpython-38.opt-1.pyc
1.664 KB
-rw-r--r--
rosette.cpython-38.opt-2.pyc
1.326 KB
-rw-r--r--
rosette.cpython-38.pyc
1.664 KB
-rw-r--r--
round_dance.cpython-38.opt-1.pyc
1.86 KB
-rw-r--r--
round_dance.cpython-38.opt-2.pyc
1.272 KB
-rw-r--r--
round_dance.cpython-38.pyc
1.86 KB
-rw-r--r--
sorting_animate.cpython-38.opt-1.pyc
6.221 KB
-rw-r--r--
sorting_animate.cpython-38.opt-2.pyc
5.768 KB
-rw-r--r--
sorting_animate.cpython-38.pyc
6.221 KB
-rw-r--r--
tree.cpython-38.opt-1.pyc
1.687 KB
-rw-r--r--
tree.cpython-38.opt-2.pyc
1.107 KB
-rw-r--r--
tree.cpython-38.pyc
1.687 KB
-rw-r--r--
two_canvases.cpython-38.opt-1.pyc
1.236 KB
-rw-r--r--
two_canvases.cpython-38.opt-2.pyc
1.031 KB
-rw-r--r--
two_canvases.cpython-38.pyc
1.236 KB
-rw-r--r--
yinyang.cpython-38.opt-1.pyc
1.044 KB
-rw-r--r--
yinyang.cpython-38.opt-2.pyc
0.856 KB
-rw-r--r--
yinyang.cpython-38.pyc
1.044 KB
-rw-r--r--