Que vaut la variable a à l'issue de l'exécution du script ci-dessous ?
a = 10
if a <= 10:
a = 0
elif a < 11:
| Exige beaucoup de toi-même et attends peu des autres. Ainsi beaucoup d'ennuis te seront épargnés. | |
| -- Confucius | |
| % | |
| La vie c'est des étapes... La plus douce c'est l'amour... La plus dure c'est la séparation... La plus pénible c'est les adieux... La plus belle c'est les retrouvailles. | |
| % | |
| Dans la vie on ne fait pas ce que l'on veut mais on est responsable de ce que l'on est. | |
| -- Jean-Paul Sartre | |
| % | |
| La vie est un mystère qu'il faut vivre, et non un problème à résoudre. | |
| -- Gandhi |
| from tango.server import run | |
| from tango.server import Device | |
| from tango.server import attribute, command | |
| import threading # assuming threading is **not** monkey-patched | |
| from gevent._threading import Queue # the genuine, unpatched Queue class (thread-safe) | |
| import gevent | |
| import gevent.event | |
| import TgGevent | |
| class WriterThread(threading.Thread): |
| A day for firm decisions!!!!! Or is it? | |
| % | |
| A few hours grace before the madness begins again. | |
| % | |
| A gift of a flower will soon be made to you. | |
| % | |
| A long-forgotten loved one will appear soon. | |
| Buy the negatives at any price. | |
| % |
| server: Sardana | |
| personal_name: lab-01 | |
| device: | |
| - tango_name: pool/lab-01/1 | |
| class: Pool | |
| alias: Pool_lab-01_1 | |
| properties: {} | |
| - tango_name: macroserver/lab-01/1 | |
| class: MacroServer | |
| alias: MS_lab-01_1 |
| # installation de PIL avec Conda: | |
| # conda install pillow | |
| # | |
| # récupération de la photo de Lena: | |
| # https://i.stack.imgur.com/3T6Gc.jpg | |
| # | |
| # récupération de photos plus grandes | |
| # https://visibleearth.nasa.gov/view.php?id=73751 | |
| # | |
| # affichage/sauvegarde de l'histogramme |
Guido Van Rossum
Interprété, avec un typage fort, avec un typage dynamique, orienté objet
Pypy, Jython, IronPython, Brython, CPython...
None
| import random | |
| import os | |
| import sys | |
| import unidecode | |
| HANGMAN = [""" | |
| _______ | |
| |/ | | |
| | | |
| | |