Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > fr.comp.lang.python > #3982
| Path | csiph.com!news.mixmin.net!aioe.org!K7PIs9tCGQ+WHJa7e6BylQ.user.46.165.242.75.POSTED!not-for-mail |
|---|---|
| From | Alain Ketterlin <alain@universite-de-strasbourg.fr.invalid> |
| Newsgroups | fr.comp.lang.python |
| Subject | Re: Un caractère spécial... |
| Date | Wed, 19 Oct 2022 14:49:42 +0200 |
| Organization | Université de Strasbourg |
| Message-ID | <87zgds2d21.fsf@universite-de-strasbourg.fr.invalid> (permalink) |
| References | <TridnT4a0poIcNL-nZ2dnZfqlJxg4p2d@giganews.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8 |
| Content-Transfer-Encoding | quoted-printable |
| Injection-Info | gioia.aioe.org; logging-data="23029"; posting-host="K7PIs9tCGQ+WHJa7e6BylQ.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org"; |
| User-Agent | Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) |
| Cancel-Lock | sha1:6BTXTQcGBStZrQVoKnoqh/0pXvM= |
| X-Notice | Filtered by postfilter v. 0.9.2 |
| Xref | csiph.com fr.comp.lang.python:3982 |
Show key headers only | View raw
duareb <nospam_duareb@free.fr.invalid> writes: > Après l'importation d'un fichier texte de nombres entiers , les > éléments ont été transformés : par exemple l'entier écrit '1 549' est > devenu '1 549', autrement dit l'espace situé entre le 1 et le 5 a > été remplacé par  . Cette conversion est erronée, manifestement. Cela ressemble à un copier-coller avec des informations de formatage. Tu ferais mieux de recommencer à zéro. > Pour revenir à la forme que je souhaite, c'est à dire 1549, la > fonction "replace()" fonctionne bien. Sauf pour le "tiret du très > haut" que je n'arrive pas à obtenir à l'aide du clavier. (Pour ce > texte que vous lisez j'ai dû faire un copier-collé du caractère > spécial). D'où ma question : Comment écrire ce caractère dans un > fichier .py ? "...\u00af..." (en python3). Au passage : Unicode nomme ce caractère MACRON. -- Alain.
Back to fr.comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar
Un caract�re sp�cial... duareb <nospam_duareb@free.fr.invalid> - 2022-10-19 12:29 +0000 Re: Un caractère spécial... Alain Ketterlin <alain@universite-de-strasbourg.fr.invalid> - 2022-10-19 14:49 +0200 Re: Un caractère spécial... Olivier Miakinen <om+news@miakinen.net> - 2022-10-19 17:18 +0200 Re: Un caractère spécial... ast <ast@invalid> - 2022-11-10 14:48 +0100
csiph-web