| oid sha256:87fe1ac3bcd054cbf5bce9c7d2171064d2a0b1b5e2711456d017593cb335395f | |||||
| size 313668 |
| @@ -44,7 +44,13 @@ def main(): | |||||
| run(program, *opts, "-d", "build", "-b", builder, "source", build_path) | run(program, *opts, "-d", "build", "-b", builder, "source", build_path) | ||||
| if format == "pdf": | if format == "pdf": | ||||
| run("make", "-C", build_path) | run("make", "-C", build_path) | ||||
| print("pdf generated in", build_path) | |||||
| # fmt: off | |||||
| run( | |||||
| "mv", "-v", "-f", | |||||
| f"{build_path}/courspython.pdf", | |||||
| "../cours.pdf", | |||||
| ) | |||||
| # fmt: on | |||||
| if __name__ == "__main__": | if __name__ == "__main__": | ||||
| @@ -293,12 +293,7 @@ Ensuite, certains caractères (comme ``é``) sont représentés par 2 octets:: | |||||
| # Affiche: b'caf\xc3\xa9" | # Affiche: b'caf\xc3\xa9" | ||||
| Enfin, certains caractères (comme les emojis) sont représentés par pleins d'octets:: | |||||
| encodé = "I ❤️ you".encode("utf-8") | |||||
| print(encodé) | |||||
| b'I \xe2\x9d\xa4\xef\xb8\x8f you' | |||||
| Enfin, certains caractères (comme les emojis) sont représentés par 3 voire plus octets. | |||||
| .. warning:: | .. warning:: | ||||