Deutsch English Français Italiano |
<Oa6dnYDrDIrCKMH8nZ2dnUU798zNnZ2d@giganews.com> View for Bookmarking (what is this?) Look up another Usenet article |
X-Received: by 2002:a05:600c:3205:: with SMTP id r5mr5579560wmp.109.1633465695842; Tue, 05 Oct 2021 13:28:15 -0700 (PDT) MIME-Version: 1.0 Path: ...!buffer2.nntp.ams1.giganews.com!news.giganews.com.POSTED!not-for-mail NNTP-Posting-Date: Tue, 05 Oct 2021 15:28:15 -0500 Newsgroups: fr.comp.lang.python Subject: données changeante au sein d'une liste X-poster: PEAR::Net_NNTP v1.5.0 (stable) From: FabienLacroix <nospam_andrlacroix@yahoo.fr.invalid> Organization: !No_Organization! Message-ID: <Oa6dnYDrDIrCKMH8nZ2dnUU798zNnZ2d@giganews.com> Date: Tue, 05 Oct 2021 15:28:15 -0500 Lines: 46 X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-2qfTTo8s88ixXUaWV6qxjC5WeeAVrLkRjFrq/w1boA/pgnyIUMyrRvHqA+Icq7HjgL2J1E2v2ASG6LD!Q4RBF+g5WmWMyCzqMa4/gnrzUOV3Iy/xTxhUc+wLod9eB0oWLeieMvzR3GC2yREbaWSxm9edRblz 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 X-Original-Lines: 44 X-Original-Bytes: 2306 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Bytes: 2669 Bonjour, ma liste prend de nouvelles valeur alors que n'en réaffecte pas. c'est un programme de cube (coin FRU Front/Right/Up) FRU = autoliste(3,"black") # soit ["e;black"e; , "e;black"e; , "e;black"e;] ... couleur_index [ blanc, bleu, rouge, orange, vert, jaune ] def fru_init(etat=True): # True défini si l'on veut un cube bouillé palette=proposition_couleur() #rRenvoi assemblage index + valeur de couleur_index en une seule chaine if etat: tcf=couleur_index[int(input(f"{palette} n fru :n couleur de F ? :n"))] tcr=couleur_index[int(input(f"{palette} n fru :n couleur de R ? :n"))] tcu=couleur_index[int(input(f";{palette} n fru :n couleur de U ? :n"))] else: # par défaut tcf=couleur_index[1] tcr=couleur_index[3] tcu=couleur_index[0] FRU[0]=tcf FRU[1]=tcr FRU[2]=tcu affichagecoin(1, TA="U", A=FRU[2], TB="R", B=FRU[1], TC="F", C=FRU[0]) "e;e;e; trace coin FLU (face/gauche/haut) L rouge U blanc F bleu def test(): affichagecoin(1, TA="U", A=FRU[2], TB="R", B=FRU[1], TC="F", C=FRU[0]) "e;e;e; trace coin FLU (face/gauche/haut) L rouge U jaune F vert