Deutsch   English   Français   Italiano  
<TridnT4a0poIcNL-nZ2dnZfqlJxg4p2d@giganews.com>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!Xl.tags.giganews.com!local-2.nntp.ord.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Wed, 19 Oct 2022 12:29:09 +0000
Newsgroups: fr.comp.lang.python
Subject: Un caractère spécial...
X-poster: PEAR::Net_NNTP v1.5.0 (stable)
From: duareb <nospam_duareb@free.fr.invalid>
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: 8bit
Organization: !No_Organization!
Message-ID: <TridnT4a0poIcNL-nZ2dnZfqlJxg4p2d@giganews.com>
Date: Wed, 19 Oct 2022 12:29:09 +0000
Lines: 10
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-MEV1eFGFuhQQOE0zOiNRVfwLqk/LmFqKo5hDVDIxlQSc6fPn6V/RDylsPHuX3UpBTmAD/FGTKRpX+4C!E85Ci9pKok6cSh3WGQFN8S/ZUnYefZPaFvaEyRWuOJVoOW0Tyuq3nf31eHZkFVApEm3p7Lv++UKY
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
Bytes: 1601
X-Original-Lines: 5

Bonjour,
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  . 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 ?
Cordialement
Duareb