Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente | Prochaine révision Les deux révisions suivantes | ||
journal_20150112 [2015/01/13 14:43] raphael |
journal_20150112 [2015/01/13 14:46] raphael |
||
---|---|---|---|
Ligne 4: | Ligne 4: | ||
On l'a implémenté en [[https://www.python.org/|python]] (en le copiant depuis [[http://stackoverflow.com/|stack overflow]]) | On l'a implémenté en [[https://www.python.org/|python]] (en le copiant depuis [[http://stackoverflow.com/|stack overflow]]) | ||
<code python> | <code python> | ||
- | import string #fixed typo was using | + | import string |
rot13 = string.maketrans( | rot13 = string.maketrans( | ||
"ABCDEFGHIJKLMabcdefghijklmNOPQRSTUVWXYZnopqrstuvwxyz", | "ABCDEFGHIJKLMabcdefghijklmNOPQRSTUVWXYZnopqrstuvwxyz", |