IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Python Discussion :

Représenter un arbre dans une console


Sujet :

Python

  1. #1
    Membre chevronné

    Profil pro
    Account Manager
    Inscrit en
    Décembre 2006
    Messages
    2 301
    Détails du profil
    Informations personnelles :
    Localisation : France, Savoie (Rhône Alpes)

    Informations professionnelles :
    Activité : Account Manager

    Informations forums :
    Inscription : Décembre 2006
    Messages : 2 301
    Points : 1 751
    Points
    1 751
    Par défaut Représenter un arbre dans une console
    Bonjour,
    je voulais savoir si quelqu'un avait déjà bidouillé quelque chose permettant de faire ceci (source : ce post)

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
     
    [ Dummy ]-+-[ test ]-+-< __init__.py
              |          +-< x.py
              |          +-< y.py
              |
              +-< zeTest.py
    On peut partir du principe que l'arbre ci-dessus est le dico. défini comme suit :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    tree = {}
    tree['Dummy'] = {}
    tree['Dummy'] ['test'] = {'__init__.py': None, 'x.py': None, 'y.py': None}
    tree['Dummy'] ['zeTest.py'] = None
    Toute info. est la bienvenue.

  2. #2
    Membre éclairé
    Homme Profil pro
    heu...
    Inscrit en
    Octobre 2007
    Messages
    648
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Essonne (Île de France)

    Informations professionnelles :
    Activité : heu...

    Informations forums :
    Inscription : Octobre 2007
    Messages : 648
    Points : 773
    Points
    773
    Par défaut
    Je comprends pas trop, quelle est la question ?

  3. #3
    Membre chevronné

    Profil pro
    Account Manager
    Inscrit en
    Décembre 2006
    Messages
    2 301
    Détails du profil
    Informations personnelles :
    Localisation : France, Savoie (Rhône Alpes)

    Informations professionnelles :
    Activité : Account Manager

    Informations forums :
    Inscription : Décembre 2006
    Messages : 2 301
    Points : 1 751
    Points
    1 751
    Par défaut
    En fait, je veux représenter des arbres qui seront par exemple associés à l'arborescence d'un dossier. Je veux que la représentation soit faite qu'avec des caractères ASCII.

    En espérant avoir été un peu plus clair.

  4. #4
    Membre éprouvé

    Profil pro
    Inscrit en
    Août 2004
    Messages
    723
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Août 2004
    Messages : 723
    Points : 923
    Points
    923
    Par défaut
    Parcourir l'arbre, on sait faire sans problème, après il te suffit de gérer une pile contenant le nombre de caractères d'indentation et d'afficher ça, à mon avis c'est pas bien compliqué, je te laisse chercher
    A mon avis le plus simple serait de gérer une "matrice", liste de listes qui contiendrait la sortie ligne par ligne et caractère par caractère, histoire de pouvoir modifier les lignes quand il faut rajouter un "frère" (ça ajoute un | par ligne pour faire le lien)
    Ensuite il ne reste plus qu'à tout fusionner.

  5. #5
    Membre chevronné

    Profil pro
    Account Manager
    Inscrit en
    Décembre 2006
    Messages
    2 301
    Détails du profil
    Informations personnelles :
    Localisation : France, Savoie (Rhône Alpes)

    Informations professionnelles :
    Activité : Account Manager

    Informations forums :
    Inscription : Décembre 2006
    Messages : 2 301
    Points : 1 751
    Points
    1 751
    Par défaut
    Citation Envoyé par oiffrig Voir le message
    ... d'afficher ça, à mon avis c'est pas bien compliqué, je te laisse chercher
    Je suis d'accord avec toi c'est bien pour cela que j'ai écrit :
    Citation Envoyé par oiffrig Voir le message
    ...je voulais savoir si quelqu'un avait déjà bidouillé...
    Je vais essayer de trouver 30 min d'abscence de flemme pour faire cela et je mettrais une solution ici.

  6. #6
    Membre éclairé
    Homme Profil pro
    heu...
    Inscrit en
    Octobre 2007
    Messages
    648
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Essonne (Île de France)

    Informations professionnelles :
    Activité : heu...

    Informations forums :
    Inscription : Octobre 2007
    Messages : 648
    Points : 773
    Points
    773
    Par défaut
    Et voilà ; c'est encore à paufinner mais bon, au moins tu pourras plus flemmarder :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    >>> class Tree(object):
    	__slots__=('tree','files','folders')
    	def __init__(self):
    		self.tree={}
    		self.folders=[]
    		self.files=[]
    	def addFolder(self,name):
    		self.tree[name]=Tree()
    		bisect.insort(self.folders,name)
    	def addFile(self,name):
    		self.tree[name]=None
    		bisect.insort(self.files,name)
    	def addFolders(self,itr):
    		for x in itr:
    			self.addFolder(x)
    	def addFiles(self,itr):
    		for x in itr:
    			self.addFiles(x)
    	def __getitem__(self,key):
    		return self.tree[key]
    	def __setitem__(self,key,val):
    		self.tree[key]=val
    	def text(self):
    		for fold in self.folders:
    			yield '+--#[ %s ]'%fold
    			line_next='|  '
    			for lns in self.tree[fold].text():
    				yield line_next+lns
    			yield '|'
    		for fil in self.files:
    			yield '+- %s'%fil
     
    >>> def mapFolder(tree, dirname):
            '''sert scanner un dossier et ses sous-dossiers et reconstituer leur arbo dans le Tree object passé en param'''
    	for fnm in os.listdir(dirname):
    		if os.path.isdir(dirname+'/'+fnm):
    			tree.addFolder(fnm)
    			mapFolder(tree[fnm],dirname+'/'+fnm)
    		else:
    			tree.addFile(fnm)
    Et un exemple d'utilisation
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
     
    >>> a=Tree()
    >>> mapFolder(a,'/home/ntox/Public')
    >>> print '\n'.join(a.text())
    +--#[ bsddb ]
    |  +- test.py
    |
    +--#[ testinit ]
    |  +- __init__.py
    |  +- __init__.pyc
    |  +- x.py
    |  +- x.pyc
    |  +- y.py
    |  +- y.pyc
    |
    +- Angel [5x05] - Life of the Party.srt
    +- Angel [5x05] - Life of the Party_NEW.srt
    +- Angel [5x06] - The Cautionary Tale of Numero Cinco.srt
    +- Angel [5x06] - The Cautionary Tale of Numero Cinco_NEW.srt
    +- Angel [5x07] - Lineage.srt
    +- Anglel 5x07 cuts
    +- arb.txt
    +- correctsrt.py
    +- test.py
    Attention tout de même à la profondeur des sous-dossiers ! Sinon la console se retrouvera avec des ligne excedent son nombre caractère par ligne, et effectuera des vilain retrours qui casseront la zolie mise en forme

  7. #7
    Membre chevronné

    Profil pro
    Account Manager
    Inscrit en
    Décembre 2006
    Messages
    2 301
    Détails du profil
    Informations personnelles :
    Localisation : France, Savoie (Rhône Alpes)

    Informations professionnelles :
    Activité : Account Manager

    Informations forums :
    Inscription : Décembre 2006
    Messages : 2 301
    Points : 1 751
    Points
    1 751
    Par défaut
    Merci. Mais à cause de toi, va falloir que je bosse sur ce code.

  8. #8
    Membre chevronné

    Profil pro
    Account Manager
    Inscrit en
    Décembre 2006
    Messages
    2 301
    Détails du profil
    Informations personnelles :
    Localisation : France, Savoie (Rhône Alpes)

    Informations professionnelles :
    Activité : Account Manager

    Informations forums :
    Inscription : Décembre 2006
    Messages : 2 301
    Points : 1 751
    Points
    1 751
    Par défaut
    Bonjour,
    je remonte ce post afin d'y mettre une petite amélioration du code proposé par N.tox. J'ai fait une meilleure présentation, autant dire par grand chose :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
     
    #!/usr/bin/env python3
    import os
    import bisect
     
    pathOfTheDir = "aVousDeMontrerLeChemin..."
     
    # Source :
    #    http://www.developpez.net/forums/d766118/autres-langages/python-zope/general-python/representer-arbre-console/#post4423332
    #    http://www.acooke.org/cute/PythonCode0.html
     
    class Tree(object):
        __slots__=('tree','files','folders', '__listFormat')
     
        def __init__(self):
            self.tree = {}
            self.folders = []
            self.files = []
     
            self.__listFormat = None
     
        def addFolder(self,name):
            self.tree[name]=Tree()
            bisect.insort(self.folders,name)
     
        def addFile(self,name):
            self.tree[name]=None
            bisect.insort(self.files,name)
     
        def addFolders(self,itr):
            for x in itr:
                self.addFolder(x)
     
        def addFiles(self,itr):
            for x in itr:
                self.addFiles(x)
     
        def __getitem__(self,key):
            return self.tree[key]
     
        def __setitem__(self,key,val):
            self.tree[key]=val
     
        def text(self):
            iMax = len(self.folders) - 1
            containsFiles = bool(self.files)
     
            for i, fold in enumerate(self.folders):
                if not containsFiles and i == iMax:
                    deco = '`'
                else:
                    deco='+'
     
                yield '{0}----[[ {1} ]]'.format(deco, fold)
     
                if containsFiles or i < iMax:
                    line_next='|  '
                else:
                    line_next='   '
     
                for lns in self.tree[fold].text():
                    yield line_next+lns
     
                if i < iMax:
                    yield '|'
     
            for file in self.files:
                yield '* {0}'.format(file)
     
    def mapFolder(tree, dirname):
        '''sert scanner un dossier et ses sous-dossiers et reconstituer leur arbo dans le Tree object passé en param'''
        for fnm in os.listdir(dirname):
            if os.path.isdir(dirname+os.sep+fnm):
                tree.addFolder(fnm)
                mapFolder(tree[fnm],dirname+os.sep+fnm)
            else:
                tree.addFile(fnm)
     
    a=Tree()
    mapFolder(a,pathOfTheDir)
    print('\n'.join(a.text()))
    Les résultats seront du type suivant :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    301
    302
    303
    304
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
    315
    316
    317
    318
    319
    320
    321
    322
    323
    324
    325
    326
    327
    328
    329
    330
    331
    332
    333
    334
    335
    336
    337
    338
    339
    340
    341
    342
    343
    344
    345
    346
    347
    348
    349
    350
    351
    352
    353
    354
    355
    356
    357
    358
    359
    360
    361
    362
    363
    364
    365
    366
    367
    368
    369
    370
    371
    372
    373
    374
    375
    376
    377
    378
    379
    380
    381
    382
    383
    384
    385
    386
    387
    388
    389
    390
    391
    392
    393
    394
    395
    396
    397
    398
    399
    400
    401
    402
    403
    404
    405
    406
    407
    408
    409
    410
    411
    412
    413
    414
    415
    416
    417
    418
    419
    420
    421
    422
    423
    424
    425
    426
    427
    428
    429
    430
    431
    432
    433
    434
    435
    436
    437
    438
    439
    440
    441
    442
    443
    444
    445
    446
    447
    448
    449
    450
    451
    452
    453
    454
    455
    456
    457
    458
    459
    460
    461
    462
    463
    464
    465
    466
    467
    468
    469
    470
    471
    472
    473
    474
    475
    476
    477
    478
    479
    480
    481
    482
    483
    484
    485
    486
    487
    488
    489
    490
    491
    492
    493
    494
    495
    496
    497
    498
    499
    500
    501
    502
    503
    504
    505
    506
    507
    508
    509
    510
    511
    512
    513
    514
    515
    516
    517
    518
    519
    520
    521
    522
    523
    524
    525
    526
    527
    528
    529
    530
    531
    532
    533
    534
    535
    536
    537
    538
    539
    540
    541
    542
    543
    544
    545
    546
    547
    548
    549
    550
    551
    552
    553
    554
    555
    556
    557
    558
    559
    560
    561
    562
    563
    564
    565
    566
    567
    568
    569
    570
    571
    572
    573
    574
    575
    576
    577
    578
    579
    580
    581
    582
    583
    584
    585
    586
    587
    588
    589
    590
    591
    592
    593
    594
    595
    596
    597
    598
     
    +----[[ class-functions ]]
    |  +----[[ class ]]
    |  |  +----[[ representation ]]
    |  |  |  * classRepr.py
    |  |  |  * classReprHeridity.py
    |  |  |  * classReprViaFonc.py
    |  |  |
    |  |  +----[[ technical_info ]]
    |  |  |  * infoMethodNotImplemented.py
    |  |  * attributAddWithDico.pyw
    |  |
    |  `----[[ functions ]]
    |     +----[[ call_via_dictionnary ]]
    |     |  * callViaDictionnary.py
    |     |
    |     `----[[ call_with_different_kind_of_vartiables ]]
    |        * callWithDifferentKindOfVartiables.py
    |        * callWithDifferentKindOfVartiables_Decorator.py
    |
    +----[[ csv ]]
    |  +----[[ reading ]]
    |  |  * reading.pyw
    |  |  * test.txt
    |  |
    |  `----[[ writing ]]
    |     * .DS_Store
    |     * test.txt
    |     * testBis.txt
    |     * writing.pyw
    |
    +----[[ file_directory ]]
    |  +----[[ auto_launch ]]
    |  |  +----[[ which-1.1.0 ]]
    |  |  |  +----[[ test ]]
    |  |  |  |  * test_which.py
    |  |  |  |  * testsupport.py
    |  |  |  * LICENSE.txt
    |  |  |  * MANIFEST.in
    |  |  |  * Makefile.win
    |  |  |  * PKG-INFO
    |  |  |  * README.txt
    |  |  |  * TODO.txt
    |  |  |  * build.py
    |  |  |  * launcher.cpp
    |  |  |  * logo.jpg
    |  |  |  * setup.py
    |  |  |  * which.exe
    |  |  |  * which.py
    |  |  |  * which.pyc
    |  |  * multiOs-startFile.py
    |  |  * screenshot_01.jpg
    |  |  * which-1.1.0.zip
    |  |
    |  +----[[ back_up ]]
    |  |  * pyBackUp.py
    |  |
    |  +----[[ clean_accents_and_co ]]
    |  |  * renameFileAndDirectory.py
    |  |  * tools_build_variables.py
    |  |
    |  +----[[ ftp ]]
    |  |  * ftpFromHttp2Local.py
    |  |  * ftpFromHttpTimeChange.py
    |  |  * ftpFromLocal2Http.py
    |  |  * ftpFromLocal2Http_MakeDir.py
    |  |  * ftpListDir.py
    |  |  * ftpRemoveDir.py
    |  |  * ftptest.py
    |  |  * test.txt
    |  |
    |  +----[[ general_methods ]]
    |  |  +----[[ directory_management ]]
    |  |  |  * buildNewDir.py
    |  |  |  * dirContent.py
    |  |  |  * dirContent_better.py
    |  |  * changeRightForDirAndFiles.py
    |  |  * copyAndPaste.py
    |  |  * findExtensions.py
    |  |  * lookInExternalDriver.py
    |  |
    |  +----[[ pickle_and_co ]]
    |  |  * newFile.txt
    |  |  * pickle-Test.py
    |  |  * pickle-cPickle_ATTENTION.pyw
    |  |  * pickle-cPickle_shelve_TEST.py
    |  |  * pickle-cPickle_shelve_TEST_RechercheUneValeur.pyw
    |  |  * pickle-unicode.py
    |  |  * pickleList.py
    |  |  * picklePB.py
    |  |  * pickleSure.py
    |  |  * shelve_test.pyw
    |  |  * test
    |  |  * test.txt
    |  |
    |  +----[[ relative_path ]]
    |  |  * relativePath_Custom.py
    |  |  * relativePath_CustomViaRegex.py
    |  |  * relativePath_CustomViaRegexBis.pyw
    |  |  * relativePath_Python.py
    |  |
    |  +----[[ temporary ]]
    |  |  * easyTempFile.py
    |  |
    |  `----[[ zip ]]
    |     * makeZip.py
    |
    +----[[ inspectin_python_codes ]]
    |  * .DS_Store
    |  * astPrettyPrinter.py
    |  * betterDocString_Python3.py
    |  * simpleDocString_Python3.py
    |  * test.py
    |
    +----[[ math ]]
    |  +----[[ danger ]]
    |  |  +----[[ todo ]]
    |  |  |  `----[[ test ]]
    |  |  * floatIsNotDecimal.py
    |  |
    |  +----[[ primary_numbers ]]
    |  |  * eratosthene.py
    |  |
    |  +----[[ sketch3D ]]
    |  |  * surfaceTest.py
    |  |
    |  +----[[ writing_and_reading_numbers ]]
    |  |  +----[[ fr_version1 ]]
    |  |  |  * integerToWords_fr.py
    |  |  |  * integerToWords_fr.pyc
    |  |  |  * wordsToInteger_fr.py
    |  |  |
    |  |  +----[[ fr_version2 ]]
    |  |  |  * config_fr.py
    |  |  |  * config_fr.pyc
    |  |  |  * integerToWords_fr.py
    |  |  |  * integerToWords_fr.pyc
    |  |  |  * wordsToInteger_fr.py
    |  |  * integerToWords_fr.py
    |  |  * integerToWords_fr.pyc
    |  |  * wordsToInteger_fr.py
    |  * throwingDices.py
    |
    +----[[ miscenalleous ]]
    |  * .DS_Store
    |  * deleteKey.py
    |  * howIfWorks.py
    |  * iterateurs.py
    |  * orderingDependentCalls.py
    |  * versionPython.py
    |
    +----[[ multimedia ]]
    |  +----[[ image ]]
    |  |  +----[[ cropping ]]
    |  |  |  * cropping.py
    |  |  |  * croppingBis.py
    |  |  |  * croppingPlusMargin.py
    |  |  |  * test-cropped 22-50-40.png
    |  |  |  * test-cropped.png
    |  |  |  * test-margin 22-50-40.png
    |  |  |  * test-margin.png
    |  |  |  * test.png
    |  |  |  * test_encadree.png
    |  |  |
    |  |  +----[[ glue_pictures ]]
    |  |  |  +----[[ im ]]
    |  |  |  |  * im_1.png
    |  |  |  |  * im_2.png
    |  |  |  |  * im_3.png
    |  |  |  |  * im_4.png
    |  |  |  * spriteImage.png
    |  |  |  * sprites.py
    |  |  |
    |  |  +----[[ rotate ]]
    |  |  |  * rotate.py
    |  |  |  * test-rotate-180.png
    |  |  |  * test-rotate-60*6.png
    |  |  |  * test-rotate-60.png
    |  |  |  * test.png
    |  |  |
    |  |  +----[[ text ]]
    |  |  |  `----[[ dimension ]]
    |  |  |     * test.png
    |  |  |     * textDimension.py
    |  |  * comparePIL_numpy.py
    |  |
    |  `----[[ music ]]
    |     +----[[ playlists ]]
    |     |  +----[[ dir_1 ]]
    |     |  |  * electro.pls
    |     |  |  * linux.txt
    |     |  |  * math-compile.pls
    |     |  |  * pop.pls
    |     |  |  * rap.pls
    |     |  |  * salsa.pls
    |     |  |  * swing.pls
    |     |  |  * tang-Classique-Milonga.pls
    |     |  |  * tango-Classique-Dansant.pls
    |     |  |  * tango-Classique-Dansant.pls.pls
    |     |  |  * tango-Classique-Lent.pls
    |     |  |  * tango-Classique-Milonga.pls
    |     |  |  * tango-Classique-Valse.pls
    |     |  |  * tango-Cortina.pls
    |     |  |  * tango-Demo.pls
    |     |  |  * tango-Nuevo-Dansant.pls
    |     |  |  * tango-Nuevo-Lent.pls
    |     |  |  * tango-Nuevo-Milonga.pls
    |     |  |  * tango-Nuevo-Valse.pls
    |     |  |  * world.pls
    |     |  |
    |     |  +----[[ dir_2 ]]
    |     |  |  * cours-12-10-2010.pls
    |     |  |  * mac-salsa.pls
    |     |  |  * mac-tango-Classique-Dansant.pls
    |     |  |  * mac-tango-Classique-Valse.pls
    |     |  |  * mac-tango-Cortina.pls
    |     |  |  * mac-tango-Nuevo-Dansant.pls
    |     |  |  * mac-tango-Nuevo-Lent.pls
    |     |  |  * mac.txt
    |     |  |  * pop.pls
    |     |  |  * tango-Classique-Dansant.pls
    |     |  |  * tango-Classique-Lent.pls
    |     |  |  * tango-Classique-Milonga.pls
    |     |  |  * tango-Classique-Valse.pls
    |     |  |  * tango-Cortina.pls
    |     |  |  * tango-Demo.pls
    |     |  |  * tango-Nuevo-Dansant.pls
    |     |  |  * tango-Nuevo-Lent.pls
    |     |  |  * tango-Nuevo-Milonga.pls
    |     |  |  * tango-Nuevo-Valse.pls
    |     |  |
    |     |  +----[[ newPlaylists ]]
    |     |  |  +----[[ linux ]]
    |     |  |  |  * cours-12-10-2010
    |     |  |  |  * electro
    |     |  |  |  * math-compile
    |     |  |  |  * pop
    |     |  |  |  * rap
    |     |  |  |  * salsa
    |     |  |  |  * swing
    |     |  |  |  * tango-Classique-Dansant
    |     |  |  |  * tango-Classique-Lent
    |     |  |  |  * tango-Classique-Milonga
    |     |  |  |  * tango-Classique-Valse
    |     |  |  |  * tango-Cortina
    |     |  |  |  * tango-Demo
    |     |  |  |  * tango-Nuevo-Dansant
    |     |  |  |  * tango-Nuevo-Lent
    |     |  |  |  * tango-Nuevo-Milonga
    |     |  |  |  * tango-Nuevo-Valse
    |     |  |  |  * world
    |     |  |  |
    |     |  |  `----[[ mac ]]
    |     |  |     * cours-12-10-2010
    |     |  |     * electro
    |     |  |     * math-compile
    |     |  |     * pop
    |     |  |     * rap
    |     |  |     * salsa
    |     |  |     * swing
    |     |  |     * tango-Classique-Dansant
    |     |  |     * tango-Classique-Lent
    |     |  |     * tango-Classique-Milonga
    |     |  |     * tango-Classique-Valse
    |     |  |     * tango-Cortina
    |     |  |     * tango-Demo
    |     |  |     * tango-Nuevo-Dansant
    |     |  |     * tango-Nuevo-Lent
    |     |  |     * tango-Nuevo-Milonga
    |     |  |     * tango-Nuevo-Valse
    |     |  |     * world
    |     |  * builTheAudioDir.py
    |     |  * merge.py
    |     * tag_mp3_mutagen.py
    |
    +----[[ os ]]
    |  * systemInfo.py
    |
    +----[[ security ]]
    |  * passwordFromShell.py
    |
    +----[[ special_variables_formats ]]
    |  +----[[ date_time ]]
    |  |  +----[[ translate_date ]]
    |  |  |  +----[[ easy_french_date ]]
    |  |  |  |  * easyFrenchDate.py
    |  |  |  |  * easyFrenchDateOld.py
    |  |  |  |
    |  |  |  `----[[ french_date(by_hands) ]]
    |  |  |     +----[[ config ]]
    |  |  |     |  * __init__.py
    |  |  |     |  * __init__.pyc
    |  |  |     |  * fr.py
    |  |  |     |  * fr.pyc
    |  |  |     * dates2words.py
    |  |  * checkingDate.py
    |  |  * currentDate.py
    |  |  * julianNumberDay.py
    |  |  * number_of_day_per_months.py
    |  |  * timeConversion.py
    |  |
    |  +----[[ dictionnary ]]
    |  |  * ordered.py
    |  |
    |  +----[[ list ]]
    |  |  +----[[ entries_used ]]
    |  |  |  * entriesUsedNoTrick.py
    |  |  |  * entriesUsedSet.py
    |  |  * occurence.py
    |  |  * pop_quicker.py
    |  |  * regularInsertion.py
    |  |  * sort.py
    |  |
    |  +----[[ random ]]
    |  |  * list.py
    |  |
    |  +----[[ tree ]]
    |  |  +----[[ ascii_tree_view ]]
    |  |  |  * treeViewViaASCII_1.py
    |  |  |  * treeViewViaASCII_2.py
    |  |  |
    |  |  `----[[ binary_tree ]]
    |  |     * binaryTreePretty.py
    |  |     * binaryTreeUgly.py
    |  * .DS_Store
    |
    +----[[ technical_stuffs ]]
    |  +----[[ act_when_the_script_is_closed ]]
    |  |  * fichiercount
    |  |  * fichiertrace
    |  |  * scriptCalledByTheUser.py
    |  |  * scriptDoingTheJob.py
    |  |
    |  +----[[ console ]]
    |  |  +----[[ pretty ]]
    |  |  |  +----[[ color ]]
    |  |  |  |  +----[[ basic ]]
    |  |  |  |  |  * consoleAndColorForWindows.pyw
    |  |  |  |  |  * consolelAndColor.pyw
    |  |  |  |  |  * consolelAndColorViaCurse.pyw
    |  |  |  |  |
    |  |  |  |  `----[[ console_easy_color ]]
    |  |  |  |     * consoleEasyColor.py
    |  |  |  |     * termcolor.py
    |  |  |  |     * termcolor.pyc
    |  |  |  * consolePlaying.pyw
    |  |  |  * consoleProgessBarAndColor.py
    |  |  |
    |  |  +----[[ read_arguments ]]
    |  |  |  +----[[ optionParser ]]
    |  |  |  |  * test.py
    |  |  |  |  * theOptions.py
    |  |  |  |  * theOptions.pyc
    |  |  |  * basic.py
    |  |  * consoleBackReturn.pyw
    |  |
    |  +----[[ error ]]
    |  |  * myOwnError.py
    |  |  * unknowMethodClasse.py
    |  |
    |  +----[[ inspect_code ]]
    |  |  `----[[ variable_called_by_name ]]
    |  |     * variableCalledByName.py
    |  |     * variableCalledByName_Better.py
    |  |
    |  +----[[ modules ]]
    |  |  +----[[ module_relative_imports ]]
    |  |  |  +----[[ module ]]
    |  |  |  |  +----[[ tests ]]
    |  |  |  |  |  `----[[ options ]]
    |  |  |  |  |     * test1.py
    |  |  |  |  |     * test1_bis.py
    |  |  |  |  * __init__.py
    |  |  |  |  * __init__.pyc
    |  |  |  |  * fileA.py
    |  |  |  |  * fileA.pyc
    |  |  |  |  * fileB.py
    |  |  |  |  * fileB.pyc
    |  |  |  * test2.py
    |  |  * subModulesUsedByOneModule.pyw
    |  |
    |  +----[[ thread ]]
    |  |  * launchWithoutWaiting.py
    |  |  * schtroumpfs.py
    |  |  * threadSimple.py
    |  |
    |  +----[[ wrapper_to_C_code ]]
    |  |  * pybaSomme.c
    |  |  * setup.py
    |  |  * sommeVersionPython.py
    |  * .DS_Store
    |
    +----[[ test ]]
    |  * stupidExample.py
    |
    +----[[ text-string ]]
    |  +----[[ encoding ]]
    |  |  +----[[ changing-enconding ]]
    |  |  |  * changingEnconding.py
    |  |  |  * test.txt
    |  |  |
    |  |  `----[[ oem2ansi ]]
    |  |     * ASCII.pdf
    |  |     * oem2ansi.py
    |  |     * oem2ansiBetter.pyw
    |  |
    |  +----[[ format ]]
    |  |  * speedFormat.py
    |  |  * speedFormatBis.py
    |  |  * speedFormatViaDic.pyw
    |  |
    |  +----[[ miscenalleous ]]
    |  |  +----[[ characters_used ]]
    |  |  |  * charactersUsedGroupBy.py
    |  |  |  * charactersUsedList.py
    |  |  |  * charactersUsedNoTrick.py
    |  |  |
    |  |  +----[[ digits_no_digits_cleaning ]]
    |  |  |  * addOneSpaceBetweenDigitAndNoDigit.py
    |  |  |  * cleanSpaceInDigits_addOneSpaceBetweenDigitAndNoDigit.py
    |  |  |  * cleanSpacesBetweenDigits.py
    |  |  * cleanDoubleSpace.py
    |  |  * strange.py
    |  |  * usefullStrings.py
    |  |
    |  +----[[ regex ]]
    |  |  +----[[ regex_easy_examples ]]
    |  |  |  * testEscaping.py
    |  |  |  * testValidity.py
    |  |  |
    |  |  +----[[ replace ]]
    |  |  |  * easyReplace.py
    |  |  |  * specialReplace_1.py
    |  |  |  * specialReplace_2.py
    |  |  |
    |  |  `----[[ special_split ]]
    |  |     * specialSplit.py
    |  |     * specialSplitShorter.pyw
    |  |
    |  +----[[ utilities_for_editors ]]
    |  |  +----[[ find_closest_word ]]
    |  |  |  * viaDiffLib.py
    |  |  |
    |  |  +----[[ spelling ]]
    |  |  |  `----[[ french ]]
    |  |  |     `----[[ list_of_words ]]
    |  |  |        `----[[ dico_french_GUTenberg ]]
    |  |  |           +----[[ Francais-GUTenberg-v1.0 ]]
    |  |  |           |  +----[[ dicos ]]
    |  |  |           |  |  * INDEX
    |  |  |           |  |  * abrev.desc
    |  |  |           |  |  * abrev.dico
    |  |  |           |  |  * helvetismes.desc
    |  |  |           |  |  * helvetismes.dico
    |  |  |           |  |  * informatique.desc
    |  |  |           |  |  * informatique.dico
    |  |  |           |  |  * math.desc
    |  |  |           |  |  * math.dico
    |  |  |           |  |  * noms_propres.desc
    |  |  |           |  |  * noms_propres.dico
    |  |  |           |  |  * nonverbes-rares.desc
    |  |  |           |  |  * nonverbes-rares.dico
    |  |  |           |  |  * nonverbes.desc
    |  |  |           |  |  * nonverbes.dico
    |  |  |           |  |  * series.desc
    |  |  |           |  |  * series.dico
    |  |  |           |  |  * typo.desc
    |  |  |           |  |  * typo.dico
    |  |  |           |  |  * verbes-gp12.desc
    |  |  |           |  |  * verbes-gp12.dico
    |  |  |           |  |  * verbes-gp12.dico-old
    |  |  |           |  |  * verbes-gp3.desc
    |  |  |           |  |  * verbes-gp3.dico
    |  |  |           |  |  * verbes-rares.desc
    |  |  |           |  |  * verbes-rares.dico
    |  |  |           |  |  * verbes-varia.desc
    |  |  |           |  |  * verbes-varia.dico
    |  |  |           |  |
    |  |  |           |  +----[[ docs ]]
    |  |  |           |  |  * INDEX
    |  |  |           |  |  * memoire.ps
    |  |  |           |  |  * reference.pdf
    |  |  |           |  |
    |  |  |           |  +----[[ utils ]]
    |  |  |           |  |  * INDEX
    |  |  |           |  |  * compte-mots
    |  |  |           |  |  * dansdico
    |  |  |           |  |  * doublons
    |  |  |           |  |  * flyspell.el
    |  |  |           |  |  * ispell.el
    |  |  |           |  |  * liste-mots
    |  |  |           |  |  * repartmots
    |  |  |           |  * ALIRE
    |  |  |           |  * GPL-en
    |  |  |           |  * GPL-fr
    |  |  |           |  * HISTORIQUE
    |  |  |           |  * INDEX
    |  |  |           |  * francais-TeX8b.aff
    |  |  |           |  * francais.aff
    |  |  |           |  * makehash
    |  |  |           * link.txt
    |  |  |
    |  |  +----[[ test_if_words_in_text ]]
    |  |  |  * testIfWordsInText.py
    |  |  |  * testIfWordsInTextBetter.py
    |  |  |  * testIfWordsInTextBetterPlus.py
    |  |  |  * testIfWordsInTextViaRegex.py
    |  |  |  * testIfWordsInTextViaRegexBetter.py
    |  |  * auto_completion.py
    |  * .DS_Store
    |
    +----[[ xml-html-web-mail ]]
    |  +----[[ html ]]
    |  |  +----[[ special_characters ]]
    |  |  |  +----[[ naive_methods ]]
    |  |  |  |  +----[[ htmlcarac.php3_fichiers ]]
    |  |  |  |  |  * 01095529_badinage728x90.swf
    |  |  |  |  |  * 60_35-logo-Cofidis.gif
    |  |  |  |  |  * EXO_300x250_m1.swf
    |  |  |  |  |  * Hotmail%20300x100.jpg
    |  |  |  |  |  * Hotmail%2520300x100_002.jpg
    |  |  |  |  |  * a.js
    |  |  |  |  |  * a_002.js
    |  |  |  |  |  * a_003.js
    |  |  |  |  |  * a_004.js
    |  |  |  |  |  * a_005.js
    |  |  |  |  |  * a_006.js
    |  |  |  |  |  * adperf_publisher.js
    |  |  |  |  |  * ads.js
    |  |  |  |  |  * adserv.js
    |  |  |  |  |  * css.css
    |  |  |  |  |  * cssmodule.css
    |  |  |  |  |  * facebook.png
    |  |  |  |  |  * ga.js
    |  |  |  |  |  * hit.gif
    |  |  |  |  |  * js.js
    |  |  |  |  |  * logo.png
    |  |  |  |  |  * mwtag.js
    |  |  |  |  |  * pixeltransparent.gif
    |  |  |  |  |  * pixeltransparent_002.gif
    |  |  |  |  |  * show_ads.js
    |  |  |  |  |  * supinfo.gif
    |  |  |  |  |  * test_domain.js
    |  |  |  |  |  * timestamp.gif
    |  |  |  |  |  * transparentpixel.gif
    |  |  |  |  |  * twitter.png
    |  |  |  |  |  * xiti.js
    |  |  |  |  * htmlcarac.php3.html
    |  |  |  |  * specialCharacters.py
    |  |  |  |  * tools_build_variables.py
    |  |  |  * specialCharacters.py
    |  |  |  * specialCharacters_Python2.py
    |  |  * standardHtmlLink.py
    |  |
    |  +----[[ mail ]]
    |  |  `----[[ test_if_mail ]]
    |  |     * testMail.py
    |  |     * testMail_bis.py
    |  |
    |  +----[[ web ]]
    |  |  `----[[ info_on_the_web ]]
    |  |     * carMetal.py
    |  |     * myDeliciousTag_feedparser.py
    |  |     * myDeliciousTag_pyquery.py
    |  |     * myDeliciousTag_regex.py
    |  |     * myDeliciousTag_regex_better.py
    |  |     * myDeliciousTag_regex_better_v3.py
    |  |     * recupererDatesVacancesViaSiteEducNat.py
    |  |     * updateSomeMathFreewares.py
    |  |
    |  +----[[ xml ]]
    |  |  +----[[ add_node ]]
    |  |  |  * addNode.py
    |  |  |  * buildNewXML.py
    |  |  |
    |  |  +----[[ read_and_change_values_for_first_level ]]
    |  |  |  * readAndChangeValuesForFirstLevel.py
    |  |  |
    |  |  +----[[ text_of_nodes ]]
    |  |  |  +----[[ change ]]
    |  |  |  |  * changeTextOfOneNode-Bis.py
    |  |  |  |  * changeTextOfOneNode.py
    |  |  |  |  * xml_doc.xml
    |  |  |  |
    |  |  |  `----[[ read ]]
    |  |  |     * readTextOfOneNode.py
    |  |  |     * xml_doc.xml
    |  |  |
    |  |  `----[[ walking_in_XML ]]
    |  |     * iTunesPlaylist.xml
    |  |     * walkingInXML-draft.pyw
    |  |     * walkingInXML.pyw
    |  |     * walkingInXML_Bis.pyw
    |  |     * walkingInXML_Ter-draft.pyw
    |  |     * walkingInXML_Ter.pyw
    |  * findStringValuesInXmlLikeTag.py
    * .DS_Store
    * versionPython.py
    J'ai mis cet exemple monstrueux pour montrer qu'il n'y a plu de barres verticales inutiles.

  9. #9
    Membre chevronné

    Profil pro
    Account Manager
    Inscrit en
    Décembre 2006
    Messages
    2 301
    Détails du profil
    Informations personnelles :
    Localisation : France, Savoie (Rhône Alpes)

    Informations professionnelles :
    Activité : Account Manager

    Informations forums :
    Inscription : Décembre 2006
    Messages : 2 301
    Points : 1 751
    Points
    1 751
    Par défaut
    Afin de clarifier mon propos, je mets ci-après ce que donne le code de N.Tox.
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    301
    302
    303
    304
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
    315
    316
    317
    318
    319
    320
    321
    322
    323
    324
    325
    326
    327
    328
    329
    330
    331
    332
    333
    334
    335
    336
    337
    338
    339
    340
    341
    342
    343
    344
    345
    346
    347
    348
    349
    350
    351
    352
    353
    354
    355
    356
    357
    358
    359
    360
    361
    362
    363
    364
    365
    366
    367
    368
    369
    370
    371
    372
    373
    374
    375
    376
    377
    378
    379
    380
    381
    382
    383
    384
    385
    386
    387
    388
    389
    390
    391
    392
    393
    394
    395
    396
    397
    398
    399
    400
    401
    402
    403
    404
    405
    406
    407
    408
    409
    410
    411
    412
    413
    414
    415
    416
    417
    418
    419
    420
    421
    422
    423
    424
    425
    426
    427
    428
    429
    430
    431
    432
    433
    434
    435
    436
    437
    438
    439
    440
    441
    442
    443
    444
    445
    446
    447
    448
    449
    450
    451
    452
    453
    454
    455
    456
    457
    458
    459
    460
    461
    462
    463
    464
    465
    466
    467
    468
    469
    470
    471
    472
    473
    474
    475
    476
    477
    478
    479
    480
    481
    482
    483
    484
    485
    486
    487
    488
    489
    490
    491
    492
    493
    494
    495
    496
    497
    498
    499
    500
    501
    502
    503
    504
    505
    506
    507
    508
    509
    510
    511
    512
    513
    514
    515
    516
    517
    518
    519
    520
    521
    522
    523
    524
    525
    526
    527
    528
    529
    530
    531
    532
    533
    534
    535
    536
    537
    538
    539
    540
    541
    542
    543
    544
    545
    546
    547
    548
    549
    550
    551
    552
    553
    554
    555
    556
    557
    558
    559
    560
    561
    562
    563
    564
    565
    566
    567
    568
    569
    570
    571
    572
    573
    574
    575
    576
    577
    578
    579
    580
    581
    582
    583
    584
    585
    586
    587
    588
    589
    590
    591
    592
    593
    594
    595
    596
    597
    598
    599
    600
    601
    602
    603
    604
    605
    606
    607
    608
    609
    610
    611
    612
    613
    614
    615
    616
    617
    618
    619
    620
    621
    622
    623
    624
    625
    626
    627
    628
    629
    630
    631
    632
    633
    634
    635
    636
    637
    638
    639
    640
    641
    642
    643
    644
    645
    646
    647
    648
    +----[[ class-functions ]]
    |  +----[[ class ]]
    |  |  +----[[ representation ]]
    |  |  |  * classRepr.py
    |  |  |  * classReprHeridity.py
    |  |  |  * classReprViaFonc.py
    |  |  |
    |  |  +----[[ technical_info ]]
    |  |  |  * infoMethodNotImplemented.py
    |  |  |
    |  |  * attributAddWithDico.pyw
    |  |
    |  `----[[ functions ]]
    |  |  +----[[ call_via_dictionnary ]]
    |  |  |  * callViaDictionnary.py
    |  |  |
    |  |  `----[[ call_with_different_kind_of_vartiables ]]
    |  |  |  * callWithDifferentKindOfVartiables.py
    |  |  |  * callWithDifferentKindOfVartiables_Decorator.py
    |  |  |
    |  |
    |
    +----[[ csv ]]
    |  +----[[ reading ]]
    |  |  * reading.pyw
    |  |  * test.txt
    |  |
    |  `----[[ writing ]]
    |  |  * .DS_Store
    |  |  * test.txt
    |  |  * testBis.txt
    |  |  * writing.pyw
    |  |
    |
    +----[[ file_directory ]]
    |  +----[[ auto_launch ]]
    |  |  +----[[ which-1.1.0 ]]
    |  |  |  +----[[ test ]]
    |  |  |  |  * test_which.py
    |  |  |  |  * testsupport.py
    |  |  |  |
    |  |  |  * LICENSE.txt
    |  |  |  * MANIFEST.in
    |  |  |  * Makefile.win
    |  |  |  * PKG-INFO
    |  |  |  * README.txt
    |  |  |  * TODO.txt
    |  |  |  * build.py
    |  |  |  * launcher.cpp
    |  |  |  * logo.jpg
    |  |  |  * setup.py
    |  |  |  * which.exe
    |  |  |  * which.py
    |  |  |  * which.pyc
    |  |  |
    |  |  * multiOs-startFile.py
    |  |  * screenshot_01.jpg
    |  |  * which-1.1.0.zip
    |  |
    |  +----[[ back_up ]]
    |  |  * pyBackUp.py
    |  |
    |  +----[[ clean_accents_and_co ]]
    |  |  * renameFileAndDirectory.py
    |  |  * tools_build_variables.py
    |  |
    |  +----[[ ftp ]]
    |  |  * ftpFromHttp2Local.py
    |  |  * ftpFromHttpTimeChange.py
    |  |  * ftpFromLocal2Http.py
    |  |  * ftpFromLocal2Http_MakeDir.py
    |  |  * ftpListDir.py
    |  |  * ftpRemoveDir.py
    |  |  * ftptest.py
    |  |  * test.txt
    |  |
    |  +----[[ general_methods ]]
    |  |  +----[[ directory_management ]]
    |  |  |  * buildNewDir.py
    |  |  |  * dirContent.py
    |  |  |  * dirContent_better.py
    |  |  |
    |  |  * changeRightForDirAndFiles.py
    |  |  * copyAndPaste.py
    |  |  * findExtensions.py
    |  |  * lookInExternalDriver.py
    |  |
    |  +----[[ pickle_and_co ]]
    |  |  * newFile.txt
    |  |  * pickle-Test.py
    |  |  * pickle-cPickle_ATTENTION.pyw
    |  |  * pickle-cPickle_shelve_TEST.py
    |  |  * pickle-cPickle_shelve_TEST_RechercheUneValeur.pyw
    |  |  * pickle-unicode.py
    |  |  * pickleList.py
    |  |  * picklePB.py
    |  |  * pickleSure.py
    |  |  * shelve_test.pyw
    |  |  * test
    |  |  * test.txt
    |  |
    |  +----[[ relative_path ]]
    |  |  * relativePath_Custom.py
    |  |  * relativePath_CustomViaRegex.py
    |  |  * relativePath_CustomViaRegexBis.pyw
    |  |  * relativePath_Python.py
    |  |
    |  +----[[ temporary ]]
    |  |  * easyTempFile.py
    |  |
    |  `----[[ zip ]]
    |  |  * makeZip.py
    |  |
    |
    +----[[ inspectin_python_codes ]]
    |  * .DS_Store
    |  * astPrettyPrinter.py
    |  * betterDocString_Python3.py
    |  * simpleDocString_Python3.py
    |  * test.py
    |
    +----[[ math ]]
    |  +----[[ danger ]]
    |  |  * .DS_Store
    |  |  * floatIsNotDecimal.py
    |  |
    |  +----[[ primary_numbers ]]
    |  |  * eratosthene.py
    |  |
    |  +----[[ sketch3D ]]
    |  |  * surfaceTest.py
    |  |
    |  +----[[ writing_and_reading_numbers ]]
    |  |  +----[[ fr_version1 ]]
    |  |  |  * integerToWords_fr.py
    |  |  |  * integerToWords_fr.pyc
    |  |  |  * wordsToInteger_fr.py
    |  |  |
    |  |  +----[[ fr_version2 ]]
    |  |  |  * config_fr.py
    |  |  |  * config_fr.pyc
    |  |  |  * integerToWords_fr.py
    |  |  |  * integerToWords_fr.pyc
    |  |  |  * wordsToInteger_fr.py
    |  |  |
    |  |  * integerToWords_fr.py
    |  |  * integerToWords_fr.pyc
    |  |  * wordsToInteger_fr.py
    |  |
    |  * throwingDices.py
    |
    +----[[ miscenalleous ]]
    |  * .DS_Store
    |  * deleteKey.py
    |  * howIfWorks.py
    |  * iterateurs.py
    |  * orderingDependentCalls.py
    |  * versionPython.py
    |
    +----[[ multimedia ]]
    |  +----[[ image ]]
    |  |  +----[[ cropping ]]
    |  |  |  * cropping.py
    |  |  |  * croppingBis.py
    |  |  |  * croppingPlusMargin.py
    |  |  |  * test-cropped 22-50-40.png
    |  |  |  * test-cropped.png
    |  |  |  * test-margin 22-50-40.png
    |  |  |  * test-margin.png
    |  |  |  * test.png
    |  |  |  * test_encadree.png
    |  |  |
    |  |  +----[[ glue_pictures ]]
    |  |  |  +----[[ im ]]
    |  |  |  |  * im_1.png
    |  |  |  |  * im_2.png
    |  |  |  |  * im_3.png
    |  |  |  |  * im_4.png
    |  |  |  |
    |  |  |  * spriteImage.png
    |  |  |  * sprites.py
    |  |  |
    |  |  +----[[ rotate ]]
    |  |  |  * rotate.py
    |  |  |  * test-rotate-180.png
    |  |  |  * test-rotate-60*6.png
    |  |  |  * test-rotate-60.png
    |  |  |  * test.png
    |  |  |
    |  |  +----[[ text ]]
    |  |  |  `----[[ dimension ]]
    |  |  |  |  * test.png
    |  |  |  |  * textDimension.py
    |  |  |  |
    |  |  |
    |  |  * comparePIL_numpy.py
    |  |
    |  `----[[ music ]]
    |  |  +----[[ playlists ]]
    |  |  |  +----[[ dir_1 ]]
    |  |  |  |  * electro.pls
    |  |  |  |  * linux.txt
    |  |  |  |  * math-compile.pls
    |  |  |  |  * pop.pls
    |  |  |  |  * rap.pls
    |  |  |  |  * salsa.pls
    |  |  |  |  * swing.pls
    |  |  |  |  * tang-Classique-Milonga.pls
    |  |  |  |  * tango-Classique-Dansant.pls
    |  |  |  |  * tango-Classique-Dansant.pls.pls
    |  |  |  |  * tango-Classique-Lent.pls
    |  |  |  |  * tango-Classique-Milonga.pls
    |  |  |  |  * tango-Classique-Valse.pls
    |  |  |  |  * tango-Cortina.pls
    |  |  |  |  * tango-Demo.pls
    |  |  |  |  * tango-Nuevo-Dansant.pls
    |  |  |  |  * tango-Nuevo-Lent.pls
    |  |  |  |  * tango-Nuevo-Milonga.pls
    |  |  |  |  * tango-Nuevo-Valse.pls
    |  |  |  |  * world.pls
    |  |  |  |
    |  |  |  +----[[ dir_2 ]]
    |  |  |  |  * cours-12-10-2010.pls
    |  |  |  |  * mac-salsa.pls
    |  |  |  |  * mac-tango-Classique-Dansant.pls
    |  |  |  |  * mac-tango-Classique-Valse.pls
    |  |  |  |  * mac-tango-Cortina.pls
    |  |  |  |  * mac-tango-Nuevo-Dansant.pls
    |  |  |  |  * mac-tango-Nuevo-Lent.pls
    |  |  |  |  * mac.txt
    |  |  |  |  * pop.pls
    |  |  |  |  * tango-Classique-Dansant.pls
    |  |  |  |  * tango-Classique-Lent.pls
    |  |  |  |  * tango-Classique-Milonga.pls
    |  |  |  |  * tango-Classique-Valse.pls
    |  |  |  |  * tango-Cortina.pls
    |  |  |  |  * tango-Demo.pls
    |  |  |  |  * tango-Nuevo-Dansant.pls
    |  |  |  |  * tango-Nuevo-Lent.pls
    |  |  |  |  * tango-Nuevo-Milonga.pls
    |  |  |  |  * tango-Nuevo-Valse.pls
    |  |  |  |
    |  |  |  +----[[ newPlaylists ]]
    |  |  |  |  +----[[ linux ]]
    |  |  |  |  |  * cours-12-10-2010
    |  |  |  |  |  * electro
    |  |  |  |  |  * math-compile
    |  |  |  |  |  * pop
    |  |  |  |  |  * rap
    |  |  |  |  |  * salsa
    |  |  |  |  |  * swing
    |  |  |  |  |  * tango-Classique-Dansant
    |  |  |  |  |  * tango-Classique-Lent
    |  |  |  |  |  * tango-Classique-Milonga
    |  |  |  |  |  * tango-Classique-Valse
    |  |  |  |  |  * tango-Cortina
    |  |  |  |  |  * tango-Demo
    |  |  |  |  |  * tango-Nuevo-Dansant
    |  |  |  |  |  * tango-Nuevo-Lent
    |  |  |  |  |  * tango-Nuevo-Milonga
    |  |  |  |  |  * tango-Nuevo-Valse
    |  |  |  |  |  * world
    |  |  |  |  |
    |  |  |  |  `----[[ mac ]]
    |  |  |  |  |  * cours-12-10-2010
    |  |  |  |  |  * electro
    |  |  |  |  |  * math-compile
    |  |  |  |  |  * pop
    |  |  |  |  |  * rap
    |  |  |  |  |  * salsa
    |  |  |  |  |  * swing
    |  |  |  |  |  * tango-Classique-Dansant
    |  |  |  |  |  * tango-Classique-Lent
    |  |  |  |  |  * tango-Classique-Milonga
    |  |  |  |  |  * tango-Classique-Valse
    |  |  |  |  |  * tango-Cortina
    |  |  |  |  |  * tango-Demo
    |  |  |  |  |  * tango-Nuevo-Dansant
    |  |  |  |  |  * tango-Nuevo-Lent
    |  |  |  |  |  * tango-Nuevo-Milonga
    |  |  |  |  |  * tango-Nuevo-Valse
    |  |  |  |  |  * world
    |  |  |  |  |
    |  |  |  |
    |  |  |  * builTheAudioDir.py
    |  |  |  * merge.py
    |  |  |
    |  |  * tag_mp3_mutagen.py
    |  |
    |
    +----[[ os ]]
    |  * systemInfo.py
    |
    +----[[ security ]]
    |  * passwordFromShell.py
    |
    +----[[ special_variables_formats ]]
    |  +----[[ date_time ]]
    |  |  +----[[ translate_date ]]
    |  |  |  +----[[ easy_french_date ]]
    |  |  |  |  * easyFrenchDate.py
    |  |  |  |  * easyFrenchDateOld.py
    |  |  |  |
    |  |  |  `----[[ french_date(by_hands) ]]
    |  |  |  |  +----[[ config ]]
    |  |  |  |  |  * __init__.py
    |  |  |  |  |  * __init__.pyc
    |  |  |  |  |  * fr.py
    |  |  |  |  |  * fr.pyc
    |  |  |  |  |
    |  |  |  |  * dates2words.py
    |  |  |  |
    |  |  |
    |  |  * checkingDate.py
    |  |  * currentDate.py
    |  |  * julianNumberDay.py
    |  |  * number_of_day_per_months.py
    |  |  * timeConversion.py
    |  |
    |  +----[[ dictionnary ]]
    |  |  * ordered.py
    |  |
    |  +----[[ list ]]
    |  |  +----[[ entries_used ]]
    |  |  |  * entriesUsedNoTrick.py
    |  |  |  * entriesUsedSet.py
    |  |  |
    |  |  * occurence.py
    |  |  * pop_quicker.py
    |  |  * regularInsertion.py
    |  |  * sort.py
    |  |
    |  +----[[ random ]]
    |  |  * list.py
    |  |
    |  +----[[ tree ]]
    |  |  +----[[ ascii_tree_view ]]
    |  |  |  * treeViewViaASCII_1.py
    |  |  |  * treeViewViaASCII_2.py
    |  |  |
    |  |  `----[[ binary_tree ]]
    |  |  |  * binaryTreePretty.py
    |  |  |  * binaryTreeUgly.py
    |  |  |
    |  |
    |  * .DS_Store
    |
    +----[[ technical_stuffs ]]
    |  +----[[ act_when_the_script_is_closed ]]
    |  |  * fichiercount
    |  |  * fichiertrace
    |  |  * scriptCalledByTheUser.py
    |  |  * scriptDoingTheJob.py
    |  |
    |  +----[[ console ]]
    |  |  +----[[ pretty ]]
    |  |  |  +----[[ color ]]
    |  |  |  |  +----[[ basic ]]
    |  |  |  |  |  * consoleAndColorForWindows.pyw
    |  |  |  |  |  * consolelAndColor.pyw
    |  |  |  |  |  * consolelAndColorViaCurse.pyw
    |  |  |  |  |
    |  |  |  |  `----[[ console_easy_color ]]
    |  |  |  |  |  * consoleEasyColor.py
    |  |  |  |  |  * termcolor.py
    |  |  |  |  |  * termcolor.pyc
    |  |  |  |  |
    |  |  |  |
    |  |  |  * consolePlaying.pyw
    |  |  |  * consoleProgessBarAndColor.py
    |  |  |
    |  |  +----[[ read_arguments ]]
    |  |  |  +----[[ optionParser ]]
    |  |  |  |  * test.py
    |  |  |  |  * theOptions.py
    |  |  |  |  * theOptions.pyc
    |  |  |  |
    |  |  |  * basic.py
    |  |  |
    |  |  * consoleBackReturn.pyw
    |  |
    |  +----[[ error ]]
    |  |  * myOwnError.py
    |  |  * unknowMethodClasse.py
    |  |
    |  +----[[ inspect_code ]]
    |  |  `----[[ variable_called_by_name ]]
    |  |  |  * variableCalledByName.py
    |  |  |  * variableCalledByName_Better.py
    |  |  |
    |  |
    |  +----[[ modules ]]
    |  |  +----[[ module_relative_imports ]]
    |  |  |  +----[[ module ]]
    |  |  |  |  +----[[ tests ]]
    |  |  |  |  |  `----[[ options ]]
    |  |  |  |  |  |  * test1.py
    |  |  |  |  |  |  * test1_bis.py
    |  |  |  |  |  |
    |  |  |  |  |
    |  |  |  |  * __init__.py
    |  |  |  |  * __init__.pyc
    |  |  |  |  * fileA.py
    |  |  |  |  * fileA.pyc
    |  |  |  |  * fileB.py
    |  |  |  |  * fileB.pyc
    |  |  |  |
    |  |  |  * test2.py
    |  |  |
    |  |  * subModulesUsedByOneModule.pyw
    |  |
    |  +----[[ thread ]]
    |  |  * launchWithoutWaiting.py
    |  |  * schtroumpfs.py
    |  |  * threadSimple.py
    |  |
    |  +----[[ wrapper_to_C_code ]]
    |  |  * pybaSomme.c
    |  |  * setup.py
    |  |  * sommeVersionPython.py
    |  |
    |  * .DS_Store
    |
    +----[[ test ]]
    |  * stupidExample.py
    |
    +----[[ text-string ]]
    |  +----[[ encoding ]]
    |  |  +----[[ changing-enconding ]]
    |  |  |  * changingEnconding.py
    |  |  |  * test.txt
    |  |  |
    |  |  `----[[ oem2ansi ]]
    |  |  |  * ASCII.pdf
    |  |  |  * oem2ansi.py
    |  |  |  * oem2ansiBetter.pyw
    |  |  |
    |  |
    |  +----[[ format ]]
    |  |  * speedFormat.py
    |  |  * speedFormatBis.py
    |  |  * speedFormatViaDic.pyw
    |  |
    |  +----[[ miscenalleous ]]
    |  |  +----[[ characters_used ]]
    |  |  |  * charactersUsedGroupBy.py
    |  |  |  * charactersUsedList.py
    |  |  |  * charactersUsedNoTrick.py
    |  |  |
    |  |  +----[[ digits_no_digits_cleaning ]]
    |  |  |  * addOneSpaceBetweenDigitAndNoDigit.py
    |  |  |  * cleanSpaceInDigits_addOneSpaceBetweenDigitAndNoDigit.py
    |  |  |  * cleanSpacesBetweenDigits.py
    |  |  |
    |  |  * cleanDoubleSpace.py
    |  |  * strange.py
    |  |  * usefullStrings.py
    |  |
    |  +----[[ regex ]]
    |  |  +----[[ regex_easy_examples ]]
    |  |  |  * testEscaping.py
    |  |  |  * testValidity.py
    |  |  |
    |  |  +----[[ replace ]]
    |  |  |  * easyReplace.py
    |  |  |  * specialReplace_1.py
    |  |  |  * specialReplace_2.py
    |  |  |
    |  |  `----[[ special_split ]]
    |  |  |  * specialSplit.py
    |  |  |  * specialSplitShorter.pyw
    |  |  |
    |  |
    |  +----[[ utilities_for_editors ]]
    |  |  +----[[ find_closest_word ]]
    |  |  |  * viaDiffLib.py
    |  |  |
    |  |  +----[[ spelling ]]
    |  |  |  `----[[ french ]]
    |  |  |  |  `----[[ list_of_words ]]
    |  |  |  |  |  `----[[ dico_french_GUTenberg ]]
    |  |  |  |  |  |  +----[[ Francais-GUTenberg-v1.0 ]]
    |  |  |  |  |  |  |  +----[[ dicos ]]
    |  |  |  |  |  |  |  |  * INDEX
    |  |  |  |  |  |  |  |  * abrev.desc
    |  |  |  |  |  |  |  |  * abrev.dico
    |  |  |  |  |  |  |  |  * helvetismes.desc
    |  |  |  |  |  |  |  |  * helvetismes.dico
    |  |  |  |  |  |  |  |  * informatique.desc
    |  |  |  |  |  |  |  |  * informatique.dico
    |  |  |  |  |  |  |  |  * math.desc
    |  |  |  |  |  |  |  |  * math.dico
    |  |  |  |  |  |  |  |  * noms_propres.desc
    |  |  |  |  |  |  |  |  * noms_propres.dico
    |  |  |  |  |  |  |  |  * nonverbes-rares.desc
    |  |  |  |  |  |  |  |  * nonverbes-rares.dico
    |  |  |  |  |  |  |  |  * nonverbes.desc
    |  |  |  |  |  |  |  |  * nonverbes.dico
    |  |  |  |  |  |  |  |  * series.desc
    |  |  |  |  |  |  |  |  * series.dico
    |  |  |  |  |  |  |  |  * typo.desc
    |  |  |  |  |  |  |  |  * typo.dico
    |  |  |  |  |  |  |  |  * verbes-gp12.desc
    |  |  |  |  |  |  |  |  * verbes-gp12.dico
    |  |  |  |  |  |  |  |  * verbes-gp12.dico-old
    |  |  |  |  |  |  |  |  * verbes-gp3.desc
    |  |  |  |  |  |  |  |  * verbes-gp3.dico
    |  |  |  |  |  |  |  |  * verbes-rares.desc
    |  |  |  |  |  |  |  |  * verbes-rares.dico
    |  |  |  |  |  |  |  |  * verbes-varia.desc
    |  |  |  |  |  |  |  |  * verbes-varia.dico
    |  |  |  |  |  |  |  |
    |  |  |  |  |  |  |  +----[[ docs ]]
    |  |  |  |  |  |  |  |  * INDEX
    |  |  |  |  |  |  |  |  * memoire.ps
    |  |  |  |  |  |  |  |  * reference.pdf
    |  |  |  |  |  |  |  |
    |  |  |  |  |  |  |  +----[[ utils ]]
    |  |  |  |  |  |  |  |  * INDEX
    |  |  |  |  |  |  |  |  * compte-mots
    |  |  |  |  |  |  |  |  * dansdico
    |  |  |  |  |  |  |  |  * doublons
    |  |  |  |  |  |  |  |  * flyspell.el
    |  |  |  |  |  |  |  |  * ispell.el
    |  |  |  |  |  |  |  |  * liste-mots
    |  |  |  |  |  |  |  |  * repartmots
    |  |  |  |  |  |  |  |
    |  |  |  |  |  |  |  * ALIRE
    |  |  |  |  |  |  |  * GPL-en
    |  |  |  |  |  |  |  * GPL-fr
    |  |  |  |  |  |  |  * HISTORIQUE
    |  |  |  |  |  |  |  * INDEX
    |  |  |  |  |  |  |  * francais-TeX8b.aff
    |  |  |  |  |  |  |  * francais.aff
    |  |  |  |  |  |  |  * makehash
    |  |  |  |  |  |  |
    |  |  |  |  |  |  * link.txt
    |  |  |  |  |  |
    |  |  |  |  |
    |  |  |  |
    |  |  |
    |  |  +----[[ test_if_words_in_text ]]
    |  |  |  * testIfWordsInText.py
    |  |  |  * testIfWordsInTextBetter.py
    |  |  |  * testIfWordsInTextBetterPlus.py
    |  |  |  * testIfWordsInTextViaRegex.py
    |  |  |  * testIfWordsInTextViaRegexBetter.py
    |  |  |
    |  |  * auto_completion.py
    |  |
    |  * .DS_Store
    |
    +----[[ xml-html-web-mail ]]
    |  +----[[ html ]]
    |  |  +----[[ special_characters ]]
    |  |  |  +----[[ naive_methods ]]
    |  |  |  |  +----[[ htmlcarac.php3_fichiers ]]
    |  |  |  |  |  * 01095529_badinage728x90.swf
    |  |  |  |  |  * 60_35-logo-Cofidis.gif
    |  |  |  |  |  * EXO_300x250_m1.swf
    |  |  |  |  |  * Hotmail%20300x100.jpg
    |  |  |  |  |  * Hotmail%2520300x100_002.jpg
    |  |  |  |  |  * a.js
    |  |  |  |  |  * a_002.js
    |  |  |  |  |  * a_003.js
    |  |  |  |  |  * a_004.js
    |  |  |  |  |  * a_005.js
    |  |  |  |  |  * a_006.js
    |  |  |  |  |  * adperf_publisher.js
    |  |  |  |  |  * ads.js
    |  |  |  |  |  * adserv.js
    |  |  |  |  |  * css.css
    |  |  |  |  |  * cssmodule.css
    |  |  |  |  |  * facebook.png
    |  |  |  |  |  * ga.js
    |  |  |  |  |  * hit.gif
    |  |  |  |  |  * js.js
    |  |  |  |  |  * logo.png
    |  |  |  |  |  * mwtag.js
    |  |  |  |  |  * pixeltransparent.gif
    |  |  |  |  |  * pixeltransparent_002.gif
    |  |  |  |  |  * show_ads.js
    |  |  |  |  |  * supinfo.gif
    |  |  |  |  |  * test_domain.js
    |  |  |  |  |  * timestamp.gif
    |  |  |  |  |  * transparentpixel.gif
    |  |  |  |  |  * twitter.png
    |  |  |  |  |  * xiti.js
    |  |  |  |  |
    |  |  |  |  * htmlcarac.php3.html
    |  |  |  |  * specialCharacters.py
    |  |  |  |  * tools_build_variables.py
    |  |  |  |
    |  |  |  * specialCharacters.py
    |  |  |  * specialCharacters_Python2.py
    |  |  |
    |  |  * standardHtmlLink.py
    |  |
    |  +----[[ mail ]]
    |  |  `----[[ test_if_mail ]]
    |  |  |  * testMail.py
    |  |  |  * testMail_bis.py
    |  |  |
    |  |
    |  +----[[ web ]]
    |  |  `----[[ info_on_the_web ]]
    |  |  |  * carMetal.py
    |  |  |  * myDeliciousTag_feedparser.py
    |  |  |  * myDeliciousTag_pyquery.py
    |  |  |  * myDeliciousTag_regex.py
    |  |  |  * myDeliciousTag_regex_better.py
    |  |  |  * myDeliciousTag_regex_better_v3.py
    |  |  |  * recupererDatesVacancesViaSiteEducNat.py
    |  |  |  * updateSomeMathFreewares.py
    |  |  |
    |  |
    |  +----[[ xml ]]
    |  |  +----[[ add_node ]]
    |  |  |  * addNode.py
    |  |  |  * buildNewXML.py
    |  |  |
    |  |  +----[[ read_and_change_values_for_first_level ]]
    |  |  |  * readAndChangeValuesForFirstLevel.py
    |  |  |
    |  |  +----[[ text_of_nodes ]]
    |  |  |  +----[[ change ]]
    |  |  |  |  * changeTextOfOneNode-Bis.py
    |  |  |  |  * changeTextOfOneNode.py
    |  |  |  |  * xml_doc.xml
    |  |  |  |
    |  |  |  `----[[ read ]]
    |  |  |  |  * readTextOfOneNode.py
    |  |  |  |  * xml_doc.xml
    |  |  |  |
    |  |  |
    |  |  `----[[ walking_in_XML ]]
    |  |  |  * iTunesPlaylist.xml
    |  |  |  * walkingInXML-draft.pyw
    |  |  |  * walkingInXML.pyw
    |  |  |  * walkingInXML_Bis.pyw
    |  |  |  * walkingInXML_Ter-draft.pyw
    |  |  |  * walkingInXML_Ter.pyw
    |  |  |
    |  |
    |  * findStringValuesInXmlLikeTag.py
    |
    * .DS_Store
    * versionPython.py

  10. #10
    Membre éclairé
    Homme Profil pro
    heu...
    Inscrit en
    Octobre 2007
    Messages
    648
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Essonne (Île de France)

    Informations professionnelles :
    Activité : heu...

    Informations forums :
    Inscription : Octobre 2007
    Messages : 648
    Points : 773
    Points
    773
    Par défaut
    Ah oui, en effet. Bien

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. représentation d'un arbre lexicographique dans une console
    Par kahrah dans le forum Général Python
    Réponses: 2
    Dernier message: 05/12/2013, 23h54
  2. Réponses: 15
    Dernier message: 08/08/2012, 17h35
  3. affichage d'un Arbre B dans une console
    Par gastoncs dans le forum Langage
    Réponses: 4
    Dernier message: 09/06/2011, 11h24
  4. Accents dans une console windows
    Par JolyLoic dans le forum Windows
    Réponses: 8
    Dernier message: 20/10/2004, 00h57
  5. [VB.NET] Tabulation dans une console
    Par jacma dans le forum Windows Forms
    Réponses: 5
    Dernier message: 30/09/2004, 09h50

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo