TortueMobile
Ceci est un module pour les tortues dans les cahiers Jupyter. C'est une traduction française de mobilechelonian de Thomas Kluyver.
Installation
pip install tortuemobile
Utilisation
import tortuemobile
t = tortuemobile.Tortue()
| Commande | Description | Exemple |
|---|---|---|
t.vitesse(entier) |
la vitesse de votre tortue, de 1 à 10 | t.vitesse(10) |
t.droite(degrés) |
tourner votre tortue vers la droite d'un certain nombre de degrés | t.droite(90) |
t.gauche(degrés) |
tourner la tortue vers la gauche d'un certain nombre de degrés | t.gauche(45) |
t.avant(pixels) |
faire avancer la tortue d'un certain nombre de pixels | t.avant(100) |
t.recule(pixels) |
faire reculer la tortue d'un certain nombre de pixels | t.retraite(20) |
t.cercle(rayon, degrés) |
faire dessiner à la tortue un morceau de cercle de rayon égal à un certain nombre de degrés | t.cercle(40, 360) |
t.styloenhaut() |
ta tortue peut maintenant se déplacer sans tracer des lignes | t.styloenhaut() |
t.styloenbas() |
ta tortue trace à nouveau des lignes | t.styloenbas() |
t.couleurstylo('color') |
couleur de la ligne de votre tortue en utilisant un nom de couleur | t.couleurstylo('blue') |
t.couleurstylo('rgb(R, V, B)') |
couleur de la ligne de votre tortue en utilisant valeurs de rouge, vert, et bleu de 0 à 255 | t.pencolor('rgb(0, 255, 100)') |
t.origine() |
remettre la tortue au centre de l'écran | t.origine() |
t.position(x, y) |
déplacer la tortue à une position spécifique, (0,0) est en haut à gauche et (400, 400) est en bas à droite | t.position(100, 250) |
t.fixecap(degrés) |
fixer le cap de la tortue à un certain nombre de degrés | t.cap(90) |
Metadata
Release files for tortuemobile 0.5.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tortuemobile-0.5.2.tar.gz | 94.3 kB | Without provenance | Details for tortuemobile-0.5.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tortuemobile-0.5.2-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for tortuemobile-0.5.2-py2.py3-none-any.whl |
Total release size: 188.5 kB
Release files / tortuemobile-0.5.2.tar.gz
| Download URL | tortuemobile-0.5.2.tar.gz |
|---|---|
| Size | 94.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
503ac103342d6965bf1facfcd8f5d13b2097be212356037451609a4612758b78
|
|
BLAKE2b-256 checksum How to use checksums |
25d3db3430f0c3e18e2a42a3e62568f5d369dbfeb8c5ac820a1dec3278a372de
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.13
|
Release files / tortuemobile-0.5.2-py2.py3-none-any.whl
| Download URL | tortuemobile-0.5.2-py2.py3-none-any.whl |
|---|---|
| Size | 94.2 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
ab2df392882dbd8a0b8cdfe260fd5672124a122618643eee845df76e40b6a597
|
|
BLAKE2b-256 checksum How to use checksums |
55a6887ae93f82c22953a8b1171114cc56944395fc2784be6961af8dd2616de8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.13
|
Security for tortuemobile 0.5.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.