Generateur code barre en code 39
alexandre
-
fiddy Messages postés 11069 Date d'inscription Statut Contributeur Dernière intervention -
fiddy Messages postés 11069 Date d'inscription Statut Contributeur Dernière intervention -
Bonjour, je cherche à realiser un code python, qui va demander à un utilisateur de rentrer la valeur du code barre et de le traduire en un code barre code 39, j'ai deja commencé par faire ca, mais apres je bloque completement ! si quelqu'un pourrait m'aider, ca serait cool ! Merci beaucoup
from tkinter import * def carac_binaire (t): if t=='A': return [1,0,0,0,0,1,0,0,1] if t=='B': return [0,0,1,0,0,1,0,0,1] if t=='C': return [1,0,1,0,0,1,0,0,0] if t=='D': return [0,0,0,0,1,1,0,0,1] if t=='E': return [1,0,0,0,1,1,0,0,0] if t=='F': return [0,0,1,0,1,1,0,0,0] if t=='G': return [0,0,0,0,0,1,1,0,1] if t=='H': return [1,0,0,0,0,1,1,0,0] if t=='I': return [0,0,1,0,0,1,1,0,0] if t=='J': return [0,0,0,0,1,1,1,0,0] if t=='K': return [1,0,0,0,0,0,0,1,1] if t=='L': return [0,0,1,0,0,0,0,1,1] if t=='M': return [1,0,1,0,0,0,0,1,0] if t=='N': return [0,0,0,0,1,0,0,1,1] if t=='O': return [1,0,0,0,1,0,0,1,0] if t=='P': return [0,0,1,0,1,0,0,1,0] if t=='Q': return [0,0,0,0,0,0,1,1,1] if t=='R': return [1,0,0,0,0,0,1,1,0] if t=='S': return [0,0,1,0,0,0,1,1,0] if t=='T': return [0,0,0,0,1,0,1,1,0] if t=='U': return [1,1,0,0,0,0,0,0,1] if t=='V': return [0,1,1,0,0,0,0,0,1] if t=='W': return [1,1,1,0,0,0,0,0,0] if t=='X': return [0,1,0,0,1,0,0,0,1] if t=='Y': return [1,1,0,0,1,0,0,0,0] if t=='Z': return [0,1,1,0,1,0,0,0,0] if t=='O': return [0,0,0,1,1,0,1,0,0] if t=='1': return [1,0,0,1,0,0,0,0,1] if t=='2': return [0,0,1,1,0,0,0,0,1] if t=='3': return [1,0,1,1,0,0,0,0,0] if t=='4': return [0,0,0,1,1,0,0,0,1] if t=='5': return [1,0,0,1,1,0,0,0,0] if t=='6': return [0,0,1,1,1,0,0,0,0] if t=='7': return [0,0,0,1,0,0,1,0,1] if t=='8': return [1,0,0,1,0,0,1,0,0] if t=='9': return [0,0,1,1,0,0,1,0,0] if t=='espace': return [0,1,1,0,0,0,1,0,0] if t=='tiret': return [0,1,0,0,0,0,1,0,1] if t=='dollar': return [0,1,0,1,0,1,0,0,0] if t=='pourcentage': return [0,0,0,1,0,1,0,1,0] if t=='point': return [1,1,0,0,0,0,1,0,0] if t=='diviser': return [0,1,0,1,0,0,0,1,0] if t=='plus': return [0,1,0,0,0,1,0,1,0] if t=='*': return [0,1,0,0,1,0,1,0,0]
A voir également:
- Generateur code barre en code 39
- Code ascii - Guide
- Code puk bloqué - Guide
- Comment déverrouiller un téléphone quand on a oublié le code - Guide
- Code activation windows 10 - Guide
- Code blocks - Télécharger - Langages